Some checks failed
lotterLaravel CI / test (push) Has been cancelled
- Updated AGENTS.md to clarify player interface bindings and agent account restrictions. - Improved PlayerAuthLoginController to include captcha verification for player login. - Enhanced AdminPlayerIndexController with permission checks for admin users. - Refactored AdminPlayerStoreController to enforce agent node restrictions for non-super admins. - Introduced new error codes for player authentication failures and updated related services. - Enhanced validation rules for agent profiles to include settlement cycle options. - Improved AdminCaptchaService to support separate scopes for admin and player captcha handling. - Updated various services to ensure proper credit management and settlement processes.
20 lines
929 B
PHP
20 lines
929 B
PHP
<?php
|
||
|
||
/**
|
||
* 【英文】玩家端 SSO / Bearer 鉴权相关的 API 文案(对应 JSON 的 msg 字段)。
|
||
*
|
||
* - 键名与业务错误码字符串一致(如 8001),与 LotteryMessage::sso()、docs/04 错误码对齐。
|
||
* - 英文字段可作开发兜底及未翻译场景的 fallback。
|
||
*/
|
||
return [
|
||
'8001' => 'Missing or invalid Authorization header', // 无 Bearer / 格式错误 / token 为空
|
||
'8002' => 'Token invalid or expired', // JWT 无效、过期或 dev: 格式错误等
|
||
'8003' => 'Player not registered', // 库中无对应玩家
|
||
'8004' => 'SSO secret not configured', // 未配置 MAIN_SITE_SSO_JWT_SECRET(通常返回 503)
|
||
'8005' => 'Account suspended or login disabled',
|
||
'8006' => 'Invalid username or password',
|
||
'8007' => 'Too many failed attempts. Try again later',
|
||
'8008' => 'Please sign in through the main site',
|
||
'8009' => 'Invalid or expired captcha.',
|
||
];
|