修改原有框架中英文映射
This commit is contained in:
@@ -34,10 +34,10 @@ class SystemConfigGroupLogic extends BaseLogic
|
||||
$id = $ids[0];
|
||||
$model = $this->model->where('id', $id)->findOrEmpty();
|
||||
if ($model->isEmpty()) {
|
||||
throw new ApiException('配置数据未找到');
|
||||
throw new ApiException('Config data not found');
|
||||
}
|
||||
if (in_array(intval($id), [1, 2, 3])) {
|
||||
throw new ApiException('系统默认分组,无法删除');
|
||||
throw new ApiException('System default group cannot be deleted');
|
||||
}
|
||||
Db::startTrans();
|
||||
try {
|
||||
@@ -51,7 +51,7 @@ class SystemConfigGroupLogic extends BaseLogic
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
throw new ApiException('删除数据异常,请检查');
|
||||
throw new ApiException('Delete data error, please check');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user