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