对搜索返回的消息做中英双版本

This commit is contained in:
2026-04-28 15:22:50 +08:00
parent 85133ee92b
commit 9bc439ea5e
32 changed files with 575 additions and 183 deletions

View File

@@ -77,7 +77,7 @@ class AdminWalletService
if (is_array($existing)) {
$existAdminId = intval($existing['admin_id'] ?? 0);
if ($existAdminId !== $adminId) {
return ['ok' => false, 'msg' => 'Idempotency key conflict'];
return ['ok' => false, 'msg' => __('Idempotency key conflict')];
}
return [
'ok' => true,
@@ -90,7 +90,7 @@ class AdminWalletService
$wallet = self::ensureWallet($adminId);
$before = strval($wallet['balance'] ?? '0.00');
if (bccomp($before, $withdrawCoin, 2) < 0) {
return ['ok' => false, 'msg' => '钱包余额不足'];
return ['ok' => false, 'msg' => __('Insufficient wallet balance')];
}
$after = bcsub($before, $withdrawCoin, 2);
$beforeFrozen = strval($wallet['frozen_balance'] ?? '0.00');