配置后台接口中英文对照

This commit is contained in:
2026-03-17 16:31:31 +08:00
parent 683bd5d97a
commit eb8123c7b3
7 changed files with 295 additions and 30 deletions

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace app\api\logic;
use app\api\cache\UserCache;
use app\api\util\ApiLang;
use app\api\service\LotteryService;
use app\dice\model\lottery_pool_config\DiceLotteryPoolConfig;
use app\dice\model\play_record\DicePlayRecord;
@@ -59,7 +60,7 @@ class PlayStartLogic
$minCoin = abs($minEv + self::MIN_COIN_EXTRA);
$coin = (float) $player->coin;
if ($coin < $minCoin) {
throw new ApiException('当前玩家余额'.$coin.'小于'.$minCoin.'无法继续游戏');
throw new ApiException(ApiLang::translateParams('当前玩家余额%s小于%s无法继续游戏', [$coin, $minCoin]));
}
$paid = (int) ($player->paid_ticket_count ?? 0);