pull/1/head
wanghousheng 12 months ago
parent 89f6717abd
commit 7ba4ef54b0
  1. 2
      app/api/service/User.php

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

Loading…
Cancel
Save