From a73ca7f7e2628bf460bfb34be97af0cdea229889 Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 24 May 2019 18:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BF=A1=E6=81=AF=E4=B8=8A?= =?UTF-8?q?=E6=8A=A5=E8=B0=83=E7=94=A8=E4=BE=9B=E5=BA=94=E5=95=86=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/vendorPlanSync/controllers/index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/webht/third_party/vendorPlanSync/controllers/index.php b/webht/third_party/vendorPlanSync/controllers/index.php index 8a329631..04f9cdd7 100644 --- a/webht/third_party/vendorPlanSync/controllers/index.php +++ b/webht/third_party/vendorPlanSync/controllers/index.php @@ -174,10 +174,11 @@ log_message('error',"\n\n---------------------------------------------------PUSH } // 需要填写导游, 则根据不同的供应商调用相应的方法 if (isset($this->vendor->vendor_fun[strval($input['openId'])])) { - $controller_name = $this->vendor->vendor_fun[strval($input['openId'])]; - require_once($controller_name . '.php'); - $vendor_class = new $controller_name(); - $ret = $vendor_class->tourguide_update($input, $vps, $eva); + $vendor_class = $this->vendor->vendor_fun[strval($input['openId'])]; + $this->load->library($vendor_class); + $vendor_class_name = mb_strtolower($vendor_class); + $ret = $this->$vendor_class_name->tourguide_update($input, $vps, $eva); + $err_code = $ret['err']; unset($ret['err']); // 不返回给接收方 $sync_ret = array(