From 0e3eddc37e06023eb680b540fcb856e5ba19de60 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Sun, 21 Apr 2024 15:53:36 +0800 Subject: [PATCH] 1 --- app/api/service/User.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/api/service/User.php b/app/api/service/User.php index 60cf1f9b..5e97cc31 100644 --- a/app/api/service/User.php +++ b/app/api/service/User.php @@ -129,17 +129,15 @@ class User extends UserService public static function isStore(): bool { $userInfo = static::getCurrentLoginUser(true); - if ($userInfo && $userInfo['user_type'] == UserTypeEnum::STORE) { - $userId = $userInfo['user_id']; - //商家表里有没有 - $model = new \app\common\model\store\User(); - $store_id = $model->where(['user_id' => $userId])->value('store_id'); - if ($store_id) { - return true; - } +// $model = new \app\common\model\store\User(); +// $store_id = $model->where(['user_id' => $userId])->value('store_id'); +// if ($store_id) { +// return true; +// } + return true; } return false; }