diff --git a/app/api/service/User.php b/app/api/service/User.php index f870f812..b3edc12e 100644 --- a/app/api/service/User.php +++ b/app/api/service/User.php @@ -134,7 +134,7 @@ class User extends UserService //商家表里有没有 $model = new \app\api\model\Store(); $store_id = $model->where(['user_id' => $userId])->value('store_id'); - if ($store_id && $store_id == (new self())->getStoreId()) { + if ($store_id) { return true; } }