|
@@ -106,6 +106,8 @@ class Buy extends Core
|
|
|
$where['uid'] = $this->uid;
|
|
|
$where['shop_id'] = $this->shop_id;
|
|
|
$where['id'] = Dever::input('cart_id');
|
|
|
+
|
|
|
+ $status = Dever::input('status', 1);
|
|
|
$num = Dever::input('num');
|
|
|
|
|
|
$info = Dever::db('shop/cart')->find($where);
|
|
@@ -117,6 +119,7 @@ class Buy extends Core
|
|
|
if ($num <= 0) {
|
|
|
$state = Dever::db('shop/cart')->delete($where);
|
|
|
} else {
|
|
|
+ $where['status'] = $status;
|
|
|
$where['num'] = $info['num'] + $num;
|
|
|
|
|
|
Dever::load('shop/lib/info')->checkTotal($where['num'], $info['goods_id'], $this->shop_id, $info['sku_id'], 2);
|