rkljw 1 일 전
부모
커밋
7f5db1b65e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/JsonRpc/WebsiteService.php

+ 2 - 1
app/JsonRpc/WebsiteService.php

@@ -2429,7 +2429,8 @@ class WebsiteService implements WebsiteServiceInterface
             if (isset($data['name']) && !empty($data['name'])) {
                 $query->where('category.name', 'like', '%' . trim($data['name']) . '%');
             }
-        })->get();
+        })->select('id','name','pid')
+            ->get();
         if (empty($result)) {
             return Result::error("获取失败", 0);
         } else {