From a60a3f9255bd5b8139a940031d6a1457c540ff6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=A6?= Date: Sat, 16 May 2026 15:56:52 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E8=A7=A3=E5=86=B3=E4=BA=86=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E8=AF=8A=E6=89=80=E5=AF=BC=E8=87=B4=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=AE=BF=E9=97=AE=E9=A6=96=E9=A1=B5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- member/modules/v1/controllers/StoreController.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/member/modules/v1/controllers/StoreController.php b/member/modules/v1/controllers/StoreController.php index bdae1ae..846485d 100644 --- a/member/modules/v1/controllers/StoreController.php +++ b/member/modules/v1/controllers/StoreController.php @@ -13,7 +13,7 @@ use yii\db\Exception; */ class StoreController extends BaseAppController { - public $optional = ['issue', 'detail']; + public $optional = ['issue', 'detail', 'store-change']; /** * @doc-name 门店信息 @@ -104,7 +104,13 @@ class StoreController extends BaseAppController ]); // 获取当前用户 - $userId = \Yii::$app->user->identity->getId(); + try { + $userId = \Yii::$app->user->identity->getId(); + + } catch (\Exception $e) { + ds(1); + return ['登陆异常']; + } $user = User::findOne($userId); if (!$user) { throw new Exception('用户不存在');