对搜索返回的消息做中英双版本
This commit is contained in:
@@ -264,7 +264,7 @@ class DepositTier extends Backend
|
||||
}
|
||||
$rid = $it['id'] ?? '';
|
||||
if (is_string($rid) && $rid === $newId) {
|
||||
return $this->error('档位 ID 已存在');
|
||||
return $this->error(__('Tier ID already exists'));
|
||||
}
|
||||
}
|
||||
$items[] = $this->normalizeFormRow($payload, $newId);
|
||||
@@ -342,7 +342,7 @@ class DepositTier extends Backend
|
||||
}
|
||||
$items = $payload['items'] ?? null;
|
||||
if (!is_array($items)) {
|
||||
return $this->error('items 必须为数组');
|
||||
return $this->error(__('Items must be an array'));
|
||||
}
|
||||
|
||||
return $this->persistTierList($items);
|
||||
@@ -364,7 +364,7 @@ class DepositTier extends Backend
|
||||
$resourceKey = GameHotDataLock::safeResourceKeyForConfig(DepositTierLib::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