1.支付修改取单点和时间

This commit is contained in:
xucong 2024-10-03 23:04:53 +08:00
parent 6134d0024a
commit 7e18be7c9b

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