pull/1/head
wanghousheng 10 months ago
parent 0dcdc51f6e
commit 94ee4be315
  1. 9
      app/api/service/User.php

@ -132,12 +132,13 @@ class User extends UserService
if ($userInfo && $userInfo['user_type'] == UserTypeEnum::STORE) { if ($userInfo && $userInfo['user_type'] == UserTypeEnum::STORE) {
$userId = $userInfo['user_id']; $userId = $userInfo['user_id'];
//商家表里有没有 //商家表里有没有
$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) { // if ($store_id) {
// return true;
// }
return true; return true;
} }
}
return false; return false;
} }

Loading…
Cancel
Save