调整支付检查等待时长

main
yanzai 2 months ago
parent 013ac0e9c8
commit bba2e66ce3

@ -23,7 +23,13 @@ function PayCheckFunc()
$pay_check = $db->getRow("select * from orders where status = ? and order_number is not null and (source IS NULL or source not like ?) order by paycheck_time asc", [
1,'%线下体检预约%'
]);
if (!!$pay_check and strtotime($pay_check['paycheck_time'])<strtotime($pay_check['created_at']) + 60) {
$wait_time=60;
if(!!$pay_check){
if($pay_check['source']=='web'){
$wait_time==60*20//循环查询20分钟
}
}
if (!!$pay_check and strtotime($pay_check['paycheck_time'])<strtotime($pay_check['created_at']) + $wait_time) {
Db2::u($db, 'orders', [
'paycheck_time' => date('Y-m-d H:i:s'),
], 'where id = ?', [

Loading…
Cancel
Save