本地生活支付添加字段判断
This commit is contained in:
parent
7b788298b2
commit
0520a55a89
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user