15313670163 3 місяців тому
батько
коміт
04170f072b
1 змінених файлів з 1 додано та 1 видалено
  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('暂无数据');