diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 321b40ce..3ea91b35 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -474,12 +474,12 @@ class Server if ($token) { $url = "https://api.weixin.qq.com/wxa/modify_domain?access_token=$token"; $data['action'] = 'set'; - $data['requestdomain'] = [$domain]; - $data['wsrequestdomain'] = []; - $data['uploaddomain'] = [$domain]; - $data['downloaddomain'] = [$domain]; - $data['udpdomain'] = []; - $data['tcpdomain'] = []; + $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;