From d0bfe5876b3da20188803b352eb109d207f2633f Mon Sep 17 00:00:00 2001 From: lyt Date: Sun, 29 Sep 2019 09:17:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20iPaylinks=E9=82=AE=E4=BB=B6=E8=AF=AD?= =?UTF-8?q?=E7=A7=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/pay/controllers/iPayLinksService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webht/third_party/pay/controllers/iPayLinksService.php b/webht/third_party/pay/controllers/iPayLinksService.php index b80ba304..8b9a5e8c 100644 --- a/webht/third_party/pay/controllers/iPayLinksService.php +++ b/webht/third_party/pay/controllers/iPayLinksService.php @@ -556,6 +556,8 @@ class IPayLinksService extends CI_Controller $remark_info = json_decode($item->IPL_memo); (isset($remark_info->remark)) ? $remark_info = json_decode($remark_info->remark) : NULL; $ln = (isset($remark_info->ln)) ? $remark_info->ln : "en"; + $ln = strtolower(strstr($ln, "_", true)); + $ln = $ln==='ja' ? 'jp' : $ln; $this->lang->load('ipl_common',$ln); $this->lang->load('ipl_buyer_email',$ln); $item->text = $this->lang->language;