Files
lotteryLaravel/lang/en/sso.php

16 lines
725 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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',
];