对搜索返回的消息做中英双版本
This commit is contained in:
@@ -231,7 +231,7 @@ class DepositChannel extends Backend
|
||||
}
|
||||
$items = $payload['items'] ?? null;
|
||||
if (!is_array($items)) {
|
||||
return $this->error('items 必须为数组');
|
||||
return $this->error(__('Items must be an array'));
|
||||
}
|
||||
|
||||
return $this->persistChannelList($items);
|
||||
@@ -250,7 +250,7 @@ class DepositChannel extends Backend
|
||||
$got = array_column($clean, 'code');
|
||||
sort($got);
|
||||
if ($expectedCodes !== $got) {
|
||||
return $this->error('请保存全部已注册渠道行(不可缺行)');
|
||||
return $this->error(__('Please save all registered channel rows (no missing rows)'));
|
||||
}
|
||||
$json = DepositChannelLib::encodeForDb($clean);
|
||||
} catch (InvalidArgumentException $e) {
|
||||
@@ -261,7 +261,7 @@ class DepositChannel extends Backend
|
||||
$resourceKey = GameHotDataLock::safeResourceKeyForConfig(DepositChannelLib::CONFIG_KEY);
|
||||
$lock = GameHotDataLock::tryAcquire(GameHotDataLock::TYPE_GAME_CONFIG, $resourceKey);
|
||||
if (!$lock['acquired']) {
|
||||
return $this->error('该配置正在被其他操作占用,请稍后再试');
|
||||
return $this->error(__('This config is locked by another operation, please try again later'));
|
||||
}
|
||||
try {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user