15313670163 před 3 měsíci
rodič
revize
04170f072b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/JsonRpc/CollectorService.php

+ 1 - 1
app/JsonRpc/CollectorService.php

@@ -798,7 +798,7 @@ class CollectorService implements CollectorServiceInterface
                     }else{
                         //若不存在则返回所有导航栏目
                         $result = Category::select('id','name')->get();
-                        if(!empty($result->toArray())){
+                        if(!empty($result)){
                             return Result::success($result);
                         }else{
                             return Result::error('暂无数据');