Explorar el Código

return $this->warning => error

visuddhinanda hace 11 meses
padre
commit
ff8c7b36b4
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      api-v8/app/Http/Controllers/CollectionController.php

+ 2 - 1
api-v8/app/Http/Controllers/CollectionController.php

@@ -201,7 +201,8 @@ class CollectionController extends Controller
     {
         $result  = Collection::where('uid', $id)->first();
         if (!$result) {
-            return $this->warning("没有查询到数据 id={$id}");
+            Log::warning("没有查询到数据 id={$id}");
+            return $this->error("没有查询到数据 id={$id}");
         }
         if ($result->status < 30) {
             //私有文章,判断权限