feat: 增强管理员 API 鉴权,新增 token 有效天数配置,更新相关异常处理与错误码引用
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use App\Lottery\ErrorCode;
|
||||
use RuntimeException;
|
||||
|
||||
/**
|
||||
* 玩家端 Bearer 鉴权失败时抛出,由 EnsurePlayerApi 捕获并转为 JSON。
|
||||
*
|
||||
* @property-read int $lotteryCode 业务错误码(对齐 docs/04-领域字典 §10,SSO 段 8000–8999)
|
||||
* @property-read int $lotteryCode 业务错误码({@see ErrorCode})
|
||||
* @property-read int $httpStatus HTTP 状态码(401 未授权、503 服务未配置等)
|
||||
*/
|
||||
final class PlayerAuthenticationException extends RuntimeException
|
||||
|
||||
Reference in New Issue
Block a user