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 + + ] + ); + } - ] - );