Ken hace 3 semanas
padre
commit
8b5bdaf983
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/admin/Config.php

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

@@ -90,7 +90,7 @@ class Config extends Controller
         // 示例:通过 ID 删除
         $info = ConfigService::findOne(['id' => $id]);
         if (!$info) {
-            return $this->error(0, '配置不存在');
+            return $this->error(HttpStatus::CUSTOM_ERROR, '配置不存在');
         }
 
         $info->delete();