对搜索返回的消息做中英双版本
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user