From 55d57090de9af8742676fa4c0930e9c8d1306dbb Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 21 Jun 2019 16:54:20 +0800 Subject: [PATCH] =?UTF-8?q?Trippest=E7=94=9F=E6=88=90=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E8=A1=A8:=E6=95=B0=E6=8D=AE=E5=BA=93=E6=8F=92=E5=85=A5?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trippestOrderSync/controllers/order_finance.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webht/third_party/trippestOrderSync/controllers/order_finance.php b/webht/third_party/trippestOrderSync/controllers/order_finance.php index d9a750a8..ef30746f 100644 --- a/webht/third_party/trippestOrderSync/controllers/order_finance.php +++ b/webht/third_party/trippestOrderSync/controllers/order_finance.php @@ -156,7 +156,7 @@ class Order_finance extends CI_Controller { $report_tour_pvt = array(); $report_tour_pvt['ordernumber'] = $cpvt->coli_id; $report_tour_pvt['tourCode'] = mb_substr($cpvt->PAG_Code, 0, 50); - $report_tour_pvt['tourname'] = substr($cpvt->pag_name, 0, 200); + $report_tour_pvt['tourname'] = mb_convert_encoding(substr($cpvt->pag_name, 0, 200), 'UTF-8'); $report_tour_pvt['tourtime'] = $cpvt->startdate; $report_tour_pvt['tourRSd'] = $cpvt->adult_num; $report_tour_pvt['tourRSx'] = $cpvt->child_num; @@ -190,7 +190,7 @@ class Order_finance extends CI_Controller { $cost_c = array(); $cost_c['ordernumber'] = $cost->coli_id; $cost_c['tourCode'] = mb_substr(implode(',', array_unique(array_map(function($ele){ return $ele->real_code; }, $cost->order_cost))), 0, 50); - $cost_c['tourname'] = substr($cost->pag_name, 0, 200) ; + $cost_c['tourname'] = mb_convert_encoding( substr($cost->pag_name, 0, 200), 'UTF-8') ; $cost_c['tourtime'] = $cost->startdate; $cost_c['tourRSd'] = $cost->order_cost[0]->adult_num; $cost_c['tourRSx'] = $cost->order_cost[0]->child_num;