From 186ca77825cda3b0a242266e57dac6a65d639965 Mon Sep 17 00:00:00 2001 From: Yao <734770036@qq.com> Date: Fri, 4 Oct 2024 09:21:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E7=94=9F=E6=B4=BB=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/PayLogic.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/api/logic/PayLogic.php b/app/api/logic/PayLogic.php index bf723c4a..b9ea3856 100755 --- a/app/api/logic/PayLogic.php +++ b/app/api/logic/PayLogic.php @@ -842,19 +842,22 @@ class PayLogic extends Logic if(!$good_order){ return JsonServer::error('订单错误'); } + $post_station_time = 0; if(isset($post['post_station_time'])){ $year = date("Y"); $post_station_time = $year.'-'.$post['post_station_time']; $post_station_time = strtotime($post_station_time); - LocalGoodsOrder::where('lsg_order_id',$post['lsg_order_id'])->update( - [ - 'post_station_id'=>$post['post_station_id'], - 'post_station_time'=>$post_station_time - ] - ); } + LocalGoodsOrder::where('lsg_order_id',$post['lsg_order_id'])->update( + [ + 'post_station_id'=>$post['post_station_id'], + 'post_station_time'=>$post_station_time + + ] + ); +