rkljw 1 zi în urmă
părinte
comite
7f5db1b65e
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  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 {