15313670163 hace 3 meses
padre
commit
04170f072b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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('暂无数据');