|
|
|
@ -25,17 +25,16 @@ class addorders extends CI_Controller{
|
|
|
|
|
//log_message('error','auto ticket');
|
|
|
|
|
date_default_timezone_set('Asia/Shanghai');
|
|
|
|
|
//判断账户余额,如果小于1000自动退出。
|
|
|
|
|
/*$post_data = array("key"=>JUHE_TRAIN_API_KEY);
|
|
|
|
|
$post_data = array("key"=>JUHE_TRAIN_API_KEY);
|
|
|
|
|
$back_data = GetPost_http("http://op.juhe.cn/trainTickets/balance.php",$post_data);
|
|
|
|
|
$price = json_decode($back_data)->result;
|
|
|
|
|
print_r('账户余额:'.$price);
|
|
|
|
|
if($price < 1000){
|
|
|
|
|
exit('账户余额不足');
|
|
|
|
|
}*/
|
|
|
|
|
}
|
|
|
|
|
//筛选出能自动出票的订单
|
|
|
|
|
$auto_pool = $this->BIZ_train_model->auto_check_ticket();
|
|
|
|
|
print_r($auto_pool);
|
|
|
|
|
die();
|
|
|
|
|
|
|
|
|
|
//创建一个不允许自动出票的国际火车票数组
|
|
|
|
|
$nation_train = array('K19', 'K23', 'Z8701', 'Z8702', 'Z97', 'Z98', 'Z99', 'Z100', 'K9795');
|
|
|
|
|
|
|
|
|
|