kphcdr 1 年之前
父节点
当前提交
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()