Explorar o código

return $this->warning => error

visuddhinanda hai 11 meses
pai
achega
ff8c7b36b4
Modificáronse 1 ficheiros con 2 adicións e 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) {
             //私有文章,判断权限