From 555a47941e89e59c631c8143d230fab3d617b11f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 29 Jul 2019 14:01:01 +0800 Subject: [PATCH] 1 --- webapp/controller/KefuController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/KefuController.class.php b/webapp/controller/KefuController.class.php index 486b65e..1ca2d75 100644 --- a/webapp/controller/KefuController.class.php +++ b/webapp/controller/KefuController.class.php @@ -370,7 +370,7 @@ class KefuController { } } - function https_request($url, $data = null) + function httpsRequest($url, $data = null) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); @@ -395,7 +395,7 @@ class KefuController { ); $access_token = $this->getAccessToken($gameid); $url = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token=$access_token&type=$type"; - $res_str = $this->https_request($url, $filedata); + $res_str = $this->httpsRequest($url, $filedata); $res = json_decode($res_str, true); if(isset($res['media_id'])) { return $res['media_id'];