From 7e18be7c9bcfddc7c596d1aa31cf0feda96e1729 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Thu, 3 Oct 2024 23:04:53 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=94=AF=E4=BB=98=E4=BF=AE=E6=94=B9=E5=8F=96?= =?UTF-8?q?=E5=8D=95=E7=82=B9=E5=92=8C=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/PayLogic.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/app/api/logic/PayLogic.php b/app/api/logic/PayLogic.php index 593240e7..bf723c4a 100755 --- a/app/api/logic/PayLogic.php +++ b/app/api/logic/PayLogic.php @@ -842,16 +842,19 @@ class PayLogic extends Logic if(!$good_order){ return JsonServer::error('订单错误'); } - $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 + 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 + + ] + ); + } - ] - );