From 410cd1313721ee08d4d06c4f1816ba7e41867e11 Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 22 Oct 2018 15:33:12 +0800 Subject: [PATCH] =?UTF-8?q?SMS:=20=E6=A8=A1=E6=9D=BF=E4=BF=AE=E6=94=B9(?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=A2=E5=8D=95=E5=8F=B7);=E5=9B=BD?= =?UTF-8?q?=E5=AE=B6=E5=8C=BA=E5=8F=B7=E4=BB=85=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/trippestOrderSync/controllers/api.php | 2 -- .../trippestOrderSync/controllers/send_operation.php | 10 ++++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/webht/third_party/trippestOrderSync/controllers/api.php b/webht/third_party/trippestOrderSync/controllers/api.php index 9357c565..738927d8 100644 --- a/webht/third_party/trippestOrderSync/controllers/api.php +++ b/webht/third_party/trippestOrderSync/controllers/api.php @@ -18,8 +18,6 @@ class Api extends CI_Controller { public function index() { - // echo "string"; - // return; $this->operation_detail(); } diff --git a/webht/third_party/trippestOrderSync/controllers/send_operation.php b/webht/third_party/trippestOrderSync/controllers/send_operation.php index b0200d4e..b17e4c93 100644 --- a/webht/third_party/trippestOrderSync/controllers/send_operation.php +++ b/webht/third_party/trippestOrderSync/controllers/send_operation.php @@ -50,6 +50,11 @@ class Send_operation extends CI_Controller { * * 这里只是Day Tour 订单, 不含单接送, 因此每个订单仅发送一次 * @date 2018-09-25 */ + /*! + * 模板内容 + * 2018-10-22 + * 【桂林海纳国旅】Hi {1}, your guide on {2} is {3}, (local)mobile is {4}. He/she'll call you at the hotel, or leave a message tonight. You can find more info by inputting booking No. {5} at https://www.trippest.com/track-your-trip. Wish you a wonderful day with Trippest! + */ public function daytour($COLI_ID="") { $now_h = date("H"); @@ -93,8 +98,9 @@ class Send_operation extends CI_Controller { ,"two" => substr($order->COLD_StartDate, 0, 10) ,"three" => $guide_name ,"four" => "+86 " . $guide_tel - ,"phone" => real_phone_number($order->GUT_TEL, $order->GUT_POST) - ,"nation_code" => $order->GUT_POST + ,"five" => $order->COLI_ID + ,"phone" => real_phone_number($order->GUT_TEL, mb_ereg_replace('[\D]', '', $order->GUT_POST)) + ,"nation_code" => mb_ereg_replace('[\D]', '', $order->GUT_POST) ); $cb_db = array( "TPSL_COLI_SN" => $order->COLI_SN