商品、订单部分相关代码生成,下一步先把商品搞完再搞订单
This commit is contained in:
@@ -29,6 +29,10 @@ class BaseService
|
||||
* @var int 角色ID,默认值为0,表示未登录状态
|
||||
*/
|
||||
protected int $roleId = 0;
|
||||
/**
|
||||
* @var int 商家ID
|
||||
*/
|
||||
protected int $mallId = 0;
|
||||
|
||||
/**
|
||||
* @var array 用户信息
|
||||
@@ -95,6 +99,7 @@ class BaseService
|
||||
$this->userInfo = JWTService::getInstance()->getToken()->getUserInfo();
|
||||
$this->userId = $this->userInfo['id'] ?? 0;
|
||||
$this->roleId = $this->userInfo['role_id'] ?? 0;
|
||||
$this->mallId = $this->userInfo['mall_id'] ?? 0;
|
||||
$this->utils = UtilsService::getInstance();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user