...
|
...
|
@@ -97,6 +97,8 @@ class PayController extends HomeBaseController |
|
|
$order_indent_goods_data = Db::name('indent_goods') -> where('indent_id',$order['id']) -> select();
|
|
|
foreach ($order_indent_goods_data as $key => $val){
|
|
|
Db::name('goods') -> where('id',$val['goods_id']) -> setInc('sales',$val['number']);
|
|
|
//删除购物车中的商品
|
|
|
Db::name('shopping_cart') -> where("uid=".$order['uid']." and goods_id=".$val['goods_id']) -> delete();
|
|
|
}
|
|
|
if($successful){
|
|
|
Db::startTrans();
|
...
|
...
|
|