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

This commit is contained in:
Yao 2024-10-04 11:48:43 +08:00
parent 7b788298b2
commit 0520a55a89
2 changed files with 10 additions and 3 deletions

@ -850,14 +850,18 @@ class PayLogic extends Logic
}
LocalGoodsOrder::where('lsg_order_id',$post['lsg_order_id'])->update(
$goods_order = LocalGoodsOrder::where('lsg_order_id',$post['lsg_order_id'])->update(
[
'post_station_id'=>$post['post_station_id'],
'post_station_time'=>$post_station_time
'post_station_time'=>$post_station_time,
'state'=>1
]
);
if(!$goods_order){
Db::rollback();
return JsonServer::error('订单处理失败');
}

@ -251,6 +251,9 @@ class PayNotifyLogic
$d['pay_status'] = 1;
$order['lstore_id']= $result['local_id'];
$r = Db::name("local_pay")->where("id",$result['id'])->update($d);
Db::name('local_goods_order')->where("lsg_order_id",$result['lsg_order_id'])->update([
'state'=>1
]);
}
$order['id']= $result['id'];
$order['type']= 4;