商户创建订单时的用户id

This commit is contained in:
liu 2024-06-17 18:11:18 +08:00
parent 8d0d8ab603
commit d1e1c67978

View File

@ -49,7 +49,7 @@ class StoreOrderLogic extends BaseLogic
/** 计算价格 */
foreach ($cart_select as $k => $v) {
$find = StoreBranchProduct::where(['product_id' => $v['product_id'],'store_id'=>$params['store_id']])->field('id branch_product_id,store_name,image,unit,price,cost,product_id')->find();
$find = StoreBranchProduct::where(['product_id' => $v['product_id'],'store_id'=>$params['store_id']])->field('id branch_product_id,store_name,image,unit,price,cost,product_id')->withTrashed()->find();
if (!$find) {
continue;
}
@ -147,6 +147,7 @@ class StoreOrderLogic extends BaseLogic
return false;
}
$_order = $orderInfo['order'];
$_order['uid'] = $user['id']??0;
$_order['pay_type'] = $orderInfo['order']['pay_type'];
$_order['verify_code'] = $verify_code;
if (isset($params['reservation_time'])) {