|
|
|
@ -32,6 +32,7 @@ class Index extends CI_Controller{
|
|
|
|
|
$this->pay_api=JUHE_TRAIN_PAY_API;
|
|
|
|
|
$this->refund_api=JUHE_TRAIN_REFUND_API;
|
|
|
|
|
$this->status_api=JUHE_TRAIN_STATUS_API;
|
|
|
|
|
$this->balance_api = "http://op.juhe.cn/trainTickets/balance.php";//余额
|
|
|
|
|
$this->code_zw=$this->config->item('train_zw');
|
|
|
|
|
$this->piaotype=$this->config->item('train_piaotype');
|
|
|
|
|
$this->passportty=$this->config->item('train_passportty');
|
|
|
|
@ -906,6 +907,16 @@ class Index extends CI_Controller{
|
|
|
|
|
}
|
|
|
|
|
$list->cols_id=$cols_id;
|
|
|
|
|
}
|
|
|
|
|
$post_data=array(
|
|
|
|
|
"key"=>$this->key
|
|
|
|
|
);
|
|
|
|
|
$back_data=$this->post_data($this->balance_api,$post_data);
|
|
|
|
|
$back_data = json_decode($back_data);
|
|
|
|
|
if(!empty($back_data->result)){
|
|
|
|
|
$list->balance = $back_data->result;
|
|
|
|
|
}else{
|
|
|
|
|
$list->balance = "NULL";
|
|
|
|
|
}
|
|
|
|
|
$this->load->view('bootstrap3/header');
|
|
|
|
|
$this->load->view('ht_train_order_info',$list);
|
|
|
|
|
$this->load->view('bootstrap3/footer');
|
|
|
|
|