|
|
@ -6,6 +6,7 @@ use App\Constants\v3\ErrorCode; |
|
|
use App\Constants\v3\SsdbKeys; |
|
|
use App\Constants\v3\SsdbKeys; |
|
|
use App\Exception\ErrorCodeException; |
|
|
use App\Exception\ErrorCodeException; |
|
|
use App\Model\v3\User; |
|
|
use App\Model\v3\User; |
|
|
|
|
|
use App\Model\v3\Store; |
|
|
use App\Service\v3\Interfaces\UserInfoServiceInterface; |
|
|
use App\Service\v3\Interfaces\UserInfoServiceInterface; |
|
|
use App\TaskWorker\SSDBTask; |
|
|
use App\TaskWorker\SSDBTask; |
|
|
use EasyWeChat\Factory; |
|
|
use EasyWeChat\Factory; |
|
|
@ -74,4 +75,12 @@ class UserInfoService implements UserInfoServiceInterface |
|
|
->where(['status' => 1, 'id' => $userId]) |
|
|
->where(['status' => 1, 'id' => $userId]) |
|
|
->first()->toArray(); |
|
|
->first()->toArray(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getStoreByUID($userId) |
|
|
|
|
|
{ |
|
|
|
|
|
$store = Store::where('user_id',$userId)->select(['id','name'])->first(); |
|
|
|
|
|
return $store; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |