Ken hai 3 días
pai
achega
7d7e21f759
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/admin/Admin.php

+ 1 - 1
app/Http/Controllers/admin/Admin.php

@@ -280,7 +280,7 @@ class Admin extends Controller
     {
         $id = request()->post('id');
         if ($id == 1) {
-            return $this->error(0, '超级管理员禁止操作');
+            return $this->error(HttpStatus::CUSTOM_ERROR, '超级管理员禁止操作');
         }
         // 示例:通过 ID 删除菜单
         $info = AdminService::findOne(['id' => $id]);