From d81949e3d046fabed52df12ae813bc24d349a408 Mon Sep 17 00:00:00 2001 From: cyc Date: Tue, 14 May 2019 16:48:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=87=BA=E7=AB=99=E7=A5=A8?= =?UTF-8?q?=E7=9A=84=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trainsystem/controllers/addorders.php | 13 +++++++++++-- .../trainsystem/controllers/returnorders.php | 4 ++-- .../third_party/trainsystem/views/homepage.php | 10 +++++++--- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index f5ae9b28..13e874d5 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -156,7 +156,10 @@ class addorders extends CI_Controller{ $selectseat = $this->input->get_post("selectseat"); //接收出票接口 $type = $this->input->get_post("type"); + //接受是否有站票 + $this->istanding = $this->input->get_post("istanding"); } + //测试数据 /*$cold_sn = '488121613'; $bpe_sn = '473183645,473183646,473183647'; @@ -297,12 +300,18 @@ class addorders extends CI_Controller{ $passengers .= "]"; $passengers = substr($passengers, 1); $passengers = "[" . $passengers; + + $is_accept_standing = 'no'; + if($this->istanding == 'true'){ + $is_accept_standing = 'yes'; + } + if(empty($selectseat)){ $post_data=array( "key"=>JUHE_TRAIN_API_KEY, "user_orderid"=>$cold_sn,//自定义订单号 "train_date"=>substr($data["train"]->DepartureDate, 0, 10), - "is_accept_standing"=>"no", + "is_accept_standing"=>$is_accept_standing, "from_station_name"=>$data["train"]->DepartAirport_cn, "from_station_code"=>$data["train"]->DepartAirport, "to_station_code"=>$data["train"]->ArrivalAirport, @@ -315,7 +324,7 @@ class addorders extends CI_Controller{ "key"=>JUHE_TRAIN_API_KEY, "user_orderid"=>$cold_sn,//自定义订单号 "train_date"=>substr($data["train"]->DepartureDate, 0, 10), - "is_accept_standing"=>"no", + "is_accept_standing"=>$is_accept_standing, "choose_seats"=>$selectseat, "from_station_name"=>$data["train"]->DepartAirport_cn, "from_station_code"=>$data["train"]->DepartAirport, diff --git a/application/third_party/trainsystem/controllers/returnorders.php b/application/third_party/trainsystem/controllers/returnorders.php index a09cfa28..d2ca666f 100644 --- a/application/third_party/trainsystem/controllers/returnorders.php +++ b/application/third_party/trainsystem/controllers/returnorders.php @@ -102,7 +102,7 @@ class returnorders extends CI_Controller{ $this->Sendmail_model->SendMailToTable($fromName,$fromEmail,$toName,$toEmail,$subject,$body); //发送邮件给客人 $customer_subject = 'returntickets'; - $customer_body = '

Dear'.$data->tst_realname.',

Your tickets (for name '.$data->tst_realname.',train No. '.$back_detail_data->result->checi.')have been cancelled online successfully. Your travel advisor('.$toName.',email address:'.$toEmail.',phone number (+86)'.$Mobile.')will contact you with the refund details via email within 24 hours.'; + $customer_body = '

Dear '.$data->tst_realname.',

Your tickets (for name '.$data->tst_realname.',train No. '.$back_detail_data->result->checi.') have been cancelled online successfully. Your travel advisor ('.$toName.',email address:'.$toEmail.',phone number (+86)'.$Mobile.') will contact you with the refund details via email within 24 hours.'; $customer_email = $this->BIZ_train_model->get_guest_info($coli_id); $customer_email = $customer_email[0]->GUT_Email; $this->Sendmail_model->SendMailToTable($toName,$toEmail,$data->tst_realname,'cyc@hainatravel.com',$customer_subject,$customer_body); @@ -114,7 +114,7 @@ class returnorders extends CI_Controller{ $this->Sendmail_model->SendMailToTable($fromName,$fromEmail,$toName,$toEmail,$subject,$body); //发送邮件给客人 $customer_subject = 'returntickets'; - $customer_body = '

Dear'.$data->tst_realname.',

Your application for online ticket cancellation (for name '.$data->tst_realname.', train No.'.$back_detail_data->result->checi.')has failed.Your travel advisor('.$toName.', email address: '.$toEmail.', phone number (+86)'.Mobile.'will contact you via email within 24 hours. Please call us if you need to contact us urgently.

'; + $customer_body = '

Dear '.$data->tst_realname.',

Your application for online ticket cancellation (for name '.$data->tst_realname.', train No.'.$back_detail_data->result->checi.') has failed.Your travel advisor('.$toName.', email address: '.$toEmail.', phone number (+86)'.Mobile.') will contact you via email within 24 hours. Please call us if you need to contact us urgently.

'; $customer_email = $this->BIZ_train_model->get_guest_info($coli_id); $customer_email = $customer_email[0]->GUT_Email; $this->Sendmail_model->SendMailToTable($toName,$toEmail,$data->tst_realname,'cyc@hainatravel.com',$customer_subject,$customer_body); diff --git a/application/third_party/trainsystem/views/homepage.php b/application/third_party/trainsystem/views/homepage.php index 832859b3..c19cd801 100644 --- a/application/third_party/trainsystem/views/homepage.php +++ b/application/third_party/trainsystem/views/homepage.php @@ -80,7 +80,7 @@ function selseat(seat){

翰特订单号 订单列表>>导出交易记录>> 版本:V2.0聚合余额(RMB):

-
+ ">
@@ -107,6 +107,7 @@ function selseat(seat){ 抵达时间 票价 是否提交过 + 是否接受无座 @@ -122,7 +123,7 @@ function selseat(seat){ train[0]->ArrivalTime;?> train[0]->adultcost;?> status)?"否":"";?> - + @@ -400,7 +401,10 @@ function selseat(seat){ }); people_sn=people_sn.substring(1); - url2+=$(this).attr("data-order")+"&people="+people_sn+"&selectseat="+selectseat+"&type=juhe"; + var istanding = $('input[name="istanding"]').is(':checked'); + + url2+=$(this).attr("data-order")+"&people="+people_sn+"&selectseat="+selectseat+"&type=juhe&istanding="+istanding; + var THIS=$(this); THIS.parent().parent().find(".back_mes").html(" ");//清空提示 $.ajax({