更新
This commit is contained in:
parent
8bbf70a96c
commit
1ade656c27
@ -123,12 +123,14 @@ class StoreCart extends BaseController
|
||||
//更新购物车
|
||||
$cart_id = $cart['cart_id'];
|
||||
$cart_num = ['cart_num' => ($cart['cart_num'] + $data['cart_num'])];
|
||||
if( $cart_num['source'] !=105){
|
||||
if($cart_num['source'] !=105){
|
||||
if ($entryMerId && $entryMerId != $result['product']['mer_id']) {
|
||||
$cart_num['source_id'] = $entryMerId;
|
||||
$cart_num['source'] = StoreCartDao::SOURCE_STORE_CLOUD;
|
||||
}
|
||||
$storeCart = $this->repository->update($cart_id,$cart_num);
|
||||
}else{
|
||||
return app('json')->success(['cart_id' => $cart['cart_id']]);
|
||||
}
|
||||
} else {
|
||||
//添加购物车
|
||||
|
Loading…
x
Reference in New Issue
Block a user