聚合出票,增加查看聚合余额的功能

hotfix/远程访问多媒体中心
csk 8 years ago
parent 9874760041
commit 8d92c11b0b

@ -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');

@ -1,7 +1,7 @@
<div style="width:90%;margin:30px auto;">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">翰特订单号&nbsp;<a style="margin-left:50px;" target='_blank' href="<?php echo site_url('apps/train/index/ht_order_list');?>">订单列表>></a><a style="margin-left:50px;" target='_blank' href="<?php echo site_url('apps/train/index/export');?>">导出交易记录>></a> <span style="margin-left:200px;">版本V2.0</span></h3>
<h3 class="panel-title">翰特订单号&nbsp;<a style="margin-left:50px;" target='_blank' href="<?php echo site_url('apps/train/index/ht_order_list');?>">订单列表>></a><a style="margin-left:50px;" target='_blank' href="<?php echo site_url('apps/train/index/export');?>">导出交易记录>></a> <span style="margin-left:200px;">版本V2.0</span><span class="pull-right">聚合余额(RMB)<?php echo $balance;?></span></h3>
</div>
<div class="panel-body">
<form style="width: 300px;float: left;" action="" method="post">

Loading…
Cancel
Save