|
|
|
|
@ -154,18 +154,6 @@ class returnorders extends CI_Controller{
|
|
|
|
|
$ResponseData = json_decode($ResponseJson);
|
|
|
|
|
|
|
|
|
|
if($ResponseData->Status == 'SUCCESS'){
|
|
|
|
|
$fromName = 'trainsystem';
|
|
|
|
|
$fromEmail = 'cyc@hainatravel.com';
|
|
|
|
|
$coli_id = $this->BIZ_train_model->cold_sn_get_coli_id($ticket_data->ts_cold_sn);
|
|
|
|
|
$coli_id = $coli_id['0']->COLI_ID;
|
|
|
|
|
$info = $this->BIZ_train_model->get_operatorInfo($coli_id);
|
|
|
|
|
$toName = $info[0]->OPI_Name;
|
|
|
|
|
$toEmail = $info[0]->OPI_Email;
|
|
|
|
|
$Mobile = $info[0]->Mobile;
|
|
|
|
|
$subject = '退票请求';
|
|
|
|
|
$body = '乘客:'.$data->tst_realname.' 对订单:'.$data->ts_ordernumber.'发起退票请求!!!';
|
|
|
|
|
//发送邮件给外联
|
|
|
|
|
$this->Sendmail_model->SendMailToTable($fromName,$fromEmail,$toName,$toEmail,$subject,$body);
|
|
|
|
|
echo '{"reason":"退票成功","status":"200"}';
|
|
|
|
|
}else{
|
|
|
|
|
header("HTTP/1.1 404 Not Found");
|
|
|
|
|
|