From 0ec696b721fc94485dc2fbd6201c948f45a9cbd2 Mon Sep 17 00:00:00 2001 From: cyc Date: Fri, 5 Jul 2019 15:50:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/trainsystem/controllers/addorders.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index d10c8140..8c2adfa9 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -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');