|
|
@@ -38,9 +38,6 @@ class webApp extends BaseController
|
|
|
// 用户类型
|
|
|
protected $userType = 1;
|
|
|
|
|
|
- // 仓库ID
|
|
|
- protected $stockId = 1;
|
|
|
-
|
|
|
// 登录信息
|
|
|
protected $userInfo = [];
|
|
|
|
|
|
@@ -72,7 +69,6 @@ class webApp extends BaseController
|
|
|
$this->initLogin($userId);
|
|
|
}else{
|
|
|
$this->userId = $userId;
|
|
|
- $this->stockId = isset($userInfo['stock_id'])? $userInfo['stock_id'] : 0;
|
|
|
$this->userType = isset($userInfo['user_type']) && $userInfo['user_type']? $userInfo['user_type'] : 1;
|
|
|
$this->userInfo = $userInfo;
|
|
|
}
|
|
|
@@ -113,7 +109,6 @@ class webApp extends BaseController
|
|
|
$memberModel = new MemberModel();
|
|
|
$userInfo = $memberModel->getInfo($this->userId);
|
|
|
$this->userInfo = $userInfo;
|
|
|
- $this->stockId = isset($userInfo['stock_id'])? $userInfo['stock_id'] : 0;
|
|
|
$this->userType = isset($userInfo['user_type']) && $userInfo['user_type']? $userInfo['user_type'] : 1;
|
|
|
RedisService::set("auths:info:{$userId}", $this->userInfo, 7*24*3600);
|
|
|
}
|