diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index f6ffdd7c..69120947 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -466,6 +466,7 @@ class Server * @notes:设置域名 * @param $appid * @param $domain + * @return bool|void * @author: wanghousheng */ public function setDomain($appid, $domain) @@ -475,20 +476,15 @@ class Server $url = "https://api.weixin.qq.com/wxa/modify_domain_directly?access_token=$token"; $data['action'] = 'set'; $data['requestdomain'] = $domain; -// $data['wsrequestdomain'] = ''; $data['uploaddomain'] = $domain; $data['downloaddomain'] = $domain; -// $data['udpdomain'] = ''; -// $data['tcpdomain'] = ''; $result = $this->curlPost($url, json_encode($data)); $result = json_decode($result, true); - return $result; if ($result && !empty($result['errmsg']) && $result['errmsg'] == 'ok') { return true; } return false; } - return []; } public function apiText($authorization_code, $touser)