[积分商城]优化对接API

This commit is contained in:
2026-03-30 11:47:32 +08:00
parent b30ef21780
commit 4a42899bfe
55 changed files with 835 additions and 1241 deletions

View File

@@ -19,6 +19,11 @@ class Auth extends \ba\Auth
public const LOGGED_IN = 'logged in';
public const TOKEN_TYPE = 'user';
/**
* 积分商城用户mall_playx_user_asset 主键Token 类型,与会员 user 表区分
*/
public const TOKEN_TYPE_MALL_USER = 'muser';
protected bool $loginEd = false;
protected string $error = '';
protected ?User $model = null;

View File

@@ -11,12 +11,15 @@ use Exception;
*/
class TokenExpirationException extends Exception
{
protected array $data = [];
public function __construct(
protected string $message = '',
protected int $code = 409,
protected array $data = [],
string $message = '',
int $code = 409,
array $data = [],
?\Throwable $previous = null
) {
$this->data = $data;
parent::__construct($message, $code, $previous);
}