商户创建订单时的用户id
This commit is contained in:
parent
8d0d8ab603
commit
d1e1c67978
@ -49,7 +49,7 @@ class StoreOrderLogic extends BaseLogic
|
|||||||
|
|
||||||
/** 计算价格 */
|
/** 计算价格 */
|
||||||
foreach ($cart_select as $k => $v) {
|
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) {
|
if (!$find) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -147,6 +147,7 @@ class StoreOrderLogic extends BaseLogic
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$_order = $orderInfo['order'];
|
$_order = $orderInfo['order'];
|
||||||
|
$_order['uid'] = $user['id']??0;
|
||||||
$_order['pay_type'] = $orderInfo['order']['pay_type'];
|
$_order['pay_type'] = $orderInfo['order']['pay_type'];
|
||||||
$_order['verify_code'] = $verify_code;
|
$_order['verify_code'] = $verify_code;
|
||||||
if (isset($params['reservation_time'])) {
|
if (isset($params['reservation_time'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user