Ken há 3 semanas atrás
pai
commit
8b5bdaf983
1 ficheiros alterados com 1 adições e 1 exclusões
  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();