修改原有框架中英文映射

This commit is contained in:
2026-03-17 18:09:10 +08:00
parent e7b8f4cae9
commit bdf50e61f5
81 changed files with 1956 additions and 735 deletions

View File

@@ -43,7 +43,7 @@ class SystemMenuLogic extends BaseLogic
{
$data = $this->handleData($data);
if ($data['parent_id'] == $id) {
throw new ApiException('不能设置父级为自身');
throw new ApiException('Cannot set parent to self');
}
return $this->model->update($data, ['id' => $id]);
}
@@ -55,7 +55,7 @@ class SystemMenuLogic extends BaseLogic
{
$num = $this->model->where('parent_id', 'in', $ids)->count();
if ($num > 0) {
throw new ApiException('该菜单下存在子菜单,请先删除子菜单');
throw new ApiException('This menu has sub-menus, please delete them first');
} else {
return $this->model->destroy($ids);
}