修改原有框架中英文映射
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user