调整1个bug,调整机器人订单查询轮询时间

main
yanzai 4 days ago
parent 6e1ef98731
commit 370e9f1126

@ -333,6 +333,7 @@ class PlanController extends Controller
'type'=>1,//改为正常号
'is_vip'=>$plan_type->is_vip,
'use_type'=>$plan_type->use_type,
'sex'=>$plan_type->sex,
'checkup_type_id'=>$plan_type->checkup_type_id,
'amount_limit1'=>$plan_type->amount_limit1,
'amount_limit2'=>$plan_type->amount_limit2,

@ -23,10 +23,10 @@ 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,'%线下体检预约%'
]);
$wait_time=60;
$wait_time=600;
if(!!$pay_check){
if($pay_check['source']=='web'){
$wait_time=60*20;//循环查询20分钟
$wait_time=600*2;//循环查询20分钟
}
}
if (!!$pay_check and strtotime($pay_check['paycheck_time'])<strtotime($pay_check['start_pay_time']) + $wait_time) {

Loading…
Cancel
Save