From 58de16a03224e05e21b45cc5d181efc3914a7af0 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Thu, 3 Oct 2024 17:55:21 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9C=AC=E5=9C=B0=E7=94=9F=E6=B4=BB=E4=B8=8B?= =?UTF-8?q?=E5=8D=95=E6=96=B0=E5=A2=9E2=E4=B8=AA=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LocalStoreLogic.php | 7 +++++++ app/api/logic/PayLogic.php | 1 + 2 files changed, 8 insertions(+) diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index 3e5c4eeb..54b6b6a8 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -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']; diff --git a/app/api/logic/PayLogic.php b/app/api/logic/PayLogic.php index cd663061..4a847b88 100755 --- a/app/api/logic/PayLogic.php +++ b/app/api/logic/PayLogic.php @@ -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;