pull/1/head
wanghousheng 12 months ago
parent 94ee4be315
commit b6339d846a
  1. 11
      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;
}

Loading…
Cancel
Save