商品、订单部分相关代码生成,下一步先把商品搞完再搞订单
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled

This commit is contained in:
2025-05-20 16:52:47 +08:00
parent 5bd5938e5c
commit 035ab1105c
45 changed files with 1951 additions and 151 deletions

View File

@@ -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();
}