diff --git a/app/api/service/User.php b/app/api/service/User.php index d4131a98..b89d0548 100644 --- a/app/api/service/User.php +++ b/app/api/service/User.php @@ -132,12 +132,11 @@ class User extends UserService if ($userInfo && $userInfo['user_type'] == UserTypeEnum::STORE) { $userId = $userInfo['user_id']; //商家表里有没有 -// $model = new \app\api\model\Store(); -// $store_id = $model->where(['user_id' => $userId])->value('store_id'); -// if ($store_id) { -// return true; -// } - 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 false; }