12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- namespace app\controller\kefu;
- use think\facade\App;
- use app\services\kefu\ProductServices;
- class Product extends AuthController
- {
-
- public function __construct(App $app, ProductServices $services)
- {
- parent::__construct($app);
- $this->services = $services;
- }
-
- public function getCartProductList($uid, string $store_name = '')
- {
- return $this->success(get_thumb_water($this->services->getProductCartList((int)$uid, $store_name)));
- }
-
- public function getVisitProductList($uid, string $store_name = '')
- {
- return $this->success(get_thumb_water($this->services->getVisitProductList((int)$uid, $store_name)));
- }
-
- public function getProductHotSale($uid, string $store_name = '')
- {
- return $this->success(get_thumb_water($this->services->getProductHotSale((int)$uid, $store_name)));
- }
-
- public function getProductInfo($id)
- {
- return $this->success($this->services->getProductInfo((int)$id));
- }
- }
|