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; }