From c7f03676c74474d0ef322cc0f73d35ac8f39a48c Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:35:53 +0800 Subject: [PATCH] 1 --- app/common/library/wxserver/Server.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 3ea91b35..dd13d464 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -472,14 +472,14 @@ class Server { $token = $this->authorizerAccessToken($appid); if ($token) { - $url = "https://api.weixin.qq.com/wxa/modify_domain?access_token=$token"; + $url = "https://api.weixin.qq.com/wxa/modify_domain_directly?access_token=$token"; $data['action'] = 'set'; $data['requestdomain'] = $domain; - $data['wsrequestdomain'] = ''; + $data['wsrequestdomain'] = 'ws://www.royaum.com.cn'; $data['uploaddomain'] = $domain; $data['downloaddomain'] = $domain; - $data['udpdomain'] = ''; - $data['tcpdomain'] = ''; + $data['udpdomain'] = 'udp://www.royaum.com.cn'; + $data['tcpdomain'] = 'tcp://www.royaum.com.cn'; $result = $this->curlPost($url, json_encode($data)); $result = json_decode($result, true); return $result;