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(