diff --git a/application/controllers/information.php b/application/controllers/information.php index cac198b1..9de4109c 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -554,7 +554,7 @@ class Information extends CI_Controller case 'ru': case 'jp': $information = $this->Information_model->Detail($url); - if ($delete_only || $information->ic_ht_area_type === 'q') { + if ($delete_only || !$information || $information->ic_ht_area_type === 'q') { //只删除操作,在url修改和不发布信息的时候使用 $url = $this->config->item('site_url') . '/index.php/welcome/update_cache/delete_only?static_html_url=' . $url; } else { diff --git a/application/third_party/trainsystem/controllers/returnorders.php b/application/third_party/trainsystem/controllers/returnorders.php index 078bf373..8f7e05a0 100644 --- a/application/third_party/trainsystem/controllers/returnorders.php +++ b/application/third_party/trainsystem/controllers/returnorders.php @@ -10,6 +10,7 @@ class returnorders extends CI_Controller{ $this->load->model("train_system_model"); $this->load->model("Sendmail_model"); $this->load->model('BIZ_train_model'); + } public function index(){ @@ -17,6 +18,11 @@ class returnorders extends CI_Controller{ } public function returntickets(){ + header('Access-Control-Allow-Origin:*'); + header('Access-Control-Allow-Methods:POST, GET'); + header('Access-Control-Max-Age:0'); + header('Access-Control-Allow-Headers:x-requested-with, Content-Type'); + header('Access-Control-Allow-Credentials:true'); //第三方订单号(为了避免一个子订单乘客分开出票而产生错误) $ordernumber = $this->input->get_post('ordernumber'); //护照姓名 diff --git a/webht/third_party/dingmail/controllers/index.php b/webht/third_party/dingmail/controllers/index.php index e64b2b6b..2a2549c0 100644 --- a/webht/third_party/dingmail/controllers/index.php +++ b/webht/third_party/dingmail/controllers/index.php @@ -231,7 +231,7 @@ class Index extends CI_Controller { $tolist_array = array(); $tolist_array['0'] = new stdClass(); - $tolist_array['0']->ddu_Email = 'cyc@hainatravel.com'; + $tolist_array['0']->ddu_Email = 'hr@chinahighlights.net'; if($this->do_sendmail('cyc',$tolist_array,'','应聘简历',$mailnody)){ echo '{"status":1}'; @@ -246,15 +246,16 @@ class Index extends CI_Controller { $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = 'smtp.mxhichina.com';//smtp.sendgrid.net - $mail->Port = 25; + $mail->Port = 465; $mail->SMTPAuth = true; + $mail->SMTPSecure = false; $mail->Username = 'admin@hainatravel.com'; $mail->Password = "Hainatravel123";//Hainatravel1234 - $mail->SMTPSecure = 'tls'; + $mail->SMTPSecure = 'ssl'; $mail->CharSet = "utf-8"; $mail->Encoding = "base64"; $mail->IsHTML(true); - + //$mail->SMTPDebug = 2; $mail->FromName = $fromuser; //收件人昵称 $mail->From = 'admin@hainatravel.com'; //发件人 @@ -574,6 +575,28 @@ class Index extends CI_Controller { return; } + public function upload_photos() { + $save_path = date('Y-m-d'); + $jsfunction = 'get_photo_url'; + $upload_id = 'Profile_file'; + $config['upload_path'] = APPPATH . 'upload/' . $save_path; + if (!is_dir($config['upload_path'])) { + @mkdir($config['upload_path'], 0777, true); + } + $config['allowed_types'] = 'gif|jpg|png'; + $config['encrypt_name'] = true; + + $this->load->library('upload', $config); + if (!$this->upload->do_upload($upload_id)) { + $error = array('error' => $this->upload->display_errors()); + var_dump($error); + } else { + $data = array('upload_data' => $this->upload->data()); + $file_name = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $config['upload_path'] . '/' . $data['upload_data']['file_name']; + echo ""; + } + } + //退出 public function logout(){ $this->session->unset_userdata('dingding_user_info'); diff --git a/webht/third_party/dingmail/views/mail.php b/webht/third_party/dingmail/views/mail.php index cbcbdef3..de104df7 100644 --- a/webht/third_party/dingmail/views/mail.php +++ b/webht/third_party/dingmail/views/mail.php @@ -7,7 +7,7 @@