更新购物车
This commit is contained in:
parent
39a1e6250d
commit
21d278537c
@ -93,12 +93,7 @@ class StoreCart extends BaseController
|
||||
case 99: //委托商品
|
||||
$result = app()->make(ProductRepository::class)->cartCheck($data,$this->request->userInfo());
|
||||
[$source, $sourceId, $pid] = explode(':', $this->request->param('source', '0'), 3) + ['', '', ''];
|
||||
if($source==StoreCartDao::CITY_CLOUD||$source==StoreCartDao::SOURCE_PROCURE){
|
||||
$data['source'] = $source;
|
||||
}else{
|
||||
$data['source'] = (in_array($source, [0, 1]) && $pid == $data['product_id']) ? $source : 0;
|
||||
if ($data['source'] > 0) $data['source_id'] = intval($sourceId);
|
||||
}
|
||||
$data['source'] = $source;
|
||||
break;
|
||||
case 1: //秒杀商品
|
||||
$result = app()->make(ProductRepository::class)->cartSeckillCheck($data,$this->request->userInfo());
|
||||
@ -123,7 +118,6 @@ class StoreCart extends BaseController
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
unset($data['group_buying_id']);
|
||||
if ($cart = $result['cart']) {
|
||||
//更新购物车
|
||||
|
Loading…
x
Reference in New Issue
Block a user