1.本地生活下单新增2个参数

This commit is contained in:
xucong 2024-10-03 17:55:21 +08:00
parent fcc56d30fd
commit 58de16a032
2 changed files with 8 additions and 0 deletions

@ -231,6 +231,13 @@ class LocalStoreLogic extends Logic
$data['goods_total_price'] = round($goods_msg['price']*$post['goods_num'],2);
}
if(isset($post['post_station_id'])){
$data['post_station_id'] = $post['post_station_id'];
}
if(isset($post['post_station_time'])){
$timestamp = strtotime($post['post_station_time']);
$data['post_station_time'] = $timestamp;
}
$data['order_no'] = createSn('local_goods_order', 'order_no');
$data['lstore_id'] = $post['lstore_id'];
$data['item_id'] = $post['item_id'];

@ -683,6 +683,7 @@ class PayLogic extends Logic
if(isset($post['goods_num'])){
$data['goods_num'] = $post['goods_num'];
}
$data['order_sn'] = $out_trade_no;
$data['order_source'] = 1;
$data['pay_way'] = 1;