修改采购订单写入

This commit is contained in:
luofei 2024-02-02 15:02:18 +08:00
parent 9f476e7634
commit 695110cb59

View File

@ -55,6 +55,9 @@ class StoreProcessing extends BaseController
$arr[$key]['total_price'] = $arr[$key]['product_price'];
$arr[$key]['pay_price'] = $arr[$key]['product_price'];
$arr[$key]['product_id'] = $value['product_source_id'];
$arr[$key]['uid'] = $merchant_two['uid'];
$arr[$key]['product_source_id'] = 0;
$arr[$key]['product_mer_id'] = 0;
unset($arr[$key]['order_product_id']);
Db::name('store_product')->where('product_id',$value['product_source_id'])->dec('stock');
}