本地生活支付添加字段判断

This commit is contained in:
Yao 2024-10-04 09:21:29 +08:00
parent 7e18be7c9b
commit 186ca77825

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