diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index 3008feca..c5bc55f0 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -170,6 +170,8 @@ class addorders extends CI_Controller{ public function auto_pay_ticket_2(){ date_default_timezone_set('Asia/Shanghai'); + set_time_limit(180); + //筛选出能自动出票的订单 $auto_pool = $this->BIZ_train_model->auto_check_ticket_2(); @@ -256,7 +258,7 @@ class addorders extends CI_Controller{ } //echo $saletime; $sale_diff = (time() - $saletime) / 3600; - if($sale_diff > 1){ + if($sale_diff > 12){ $auto_flag = 0; $back_message .= '-超过抢票时间'; }else if($sale_diff <0){ @@ -293,7 +295,9 @@ class addorders extends CI_Controller{ }else{ //单个订单提交 - echo $cold_sn.'
'; + //echo $cold_sn.'
'; + log_message('error','自动出票提交:'.$coli_id.'('.$cold_sn.')'); + $this->booktickets($cold_sn,$bpe_sn,'','ctrip'); //调用出票 //$string .= '汉特订单号:'.$coli_id.'('.$cold_sn.')可以自动出票'; }