Browse Source

商品详情

master
Lemon 5 years ago
parent
commit
b35b3dc86d
  1. 2
      app/Controller/v3/GoodsController.php

2
app/Controller/v3/GoodsController.php

@ -55,7 +55,7 @@ class GoodsController extends BaseController
if(isset($params['user_id'])) { if(isset($params['user_id'])) {
$res['shopcart']['count'] = $this->shopCartService->check(111); $res['shopcart']['count'] = $this->shopCartService->check(111);
$res['shopcart']['total'] = $this->shopCartService->getTotal();
$res['shopcart']['total'] = $this->shopCartService->getTotal($params['user_id'],$params['market_id']);
$res['detail']->store->is_collected = (bool)$this->collectService->check($params['user_id'], $res['detail']->store->id); $res['detail']->store->is_collected = (bool)$this->collectService->check($params['user_id'], $res['detail']->store->id);
}else{ }else{
$res['shopcart'] = ''; $res['shopcart'] = '';

Loading…
Cancel
Save