kphcdr 2 роки тому
батько
коміт
8816fe9eae
1 змінених файлів з 2 додано та 12 видалено
  1. 2 12
      app/Modules/Mini/Controllers/PageController.php

+ 2 - 12
app/Modules/Mini/Controllers/PageController.php

@@ -62,18 +62,8 @@ class PageController extends BaseController
             "id" => "required",
             "page_size" => "int",
         ]);
-        $this->service->categoryGoods($params);
-        return $this->ok([
-            "total" => 1,
-            "page_total" => 1,
-            "list" => [
-                [
-                    "id" => 1,
-                    "name" => "商品名称",
-                    "thumb" => Image::imageUrl(),
-                ],
-            ],
-        ]);
+
+        return $this->ok($this->service->categoryGoods($params));
     }
 
     public function categoryTree()