|
|
|
@ -65,11 +65,17 @@ class Store extends Controller |
|
|
|
|
return $this->renderSuccess(config('store.store_type')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function joinData():Json |
|
|
|
|
public function joinData(): Json |
|
|
|
|
{ |
|
|
|
|
// 当前用户信息 |
|
|
|
|
$userInfo = UserService::getCurrentLoginUser(true); |
|
|
|
|
$service = new StoreService; |
|
|
|
|
return $this->renderSuccess($service->joinData($userInfo->user_id)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getStore(): Json |
|
|
|
|
{ |
|
|
|
|
$service = new StoreService; |
|
|
|
|
return $this->renderSuccess($service->getStore()); |
|
|
|
|
} |
|
|
|
|
} |