Преглед изворни кода

Merge branch 'collector_1106_fr'

15313670163 пре 3 месеци
родитељ
комит
971b3cca58
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/JsonRpc/CollectorService.php

+ 1 - 1
app/JsonRpc/CollectorService.php

@@ -820,7 +820,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('暂无数据');