|
|
@ -474,12 +474,12 @@ class Server |
|
|
|
if ($token) { |
|
|
|
if ($token) { |
|
|
|
$url = "https://api.weixin.qq.com/wxa/modify_domain?access_token=$token"; |
|
|
|
$url = "https://api.weixin.qq.com/wxa/modify_domain?access_token=$token"; |
|
|
|
$data['action'] = 'set'; |
|
|
|
$data['action'] = 'set'; |
|
|
|
$data['requestdomain'] = [$domain]; |
|
|
|
$data['requestdomain'] = $domain; |
|
|
|
$data['wsrequestdomain'] = []; |
|
|
|
$data['wsrequestdomain'] = ''; |
|
|
|
$data['uploaddomain'] = [$domain]; |
|
|
|
$data['uploaddomain'] = $domain; |
|
|
|
$data['downloaddomain'] = [$domain]; |
|
|
|
$data['downloaddomain'] = $domain; |
|
|
|
$data['udpdomain'] = []; |
|
|
|
$data['udpdomain'] = ''; |
|
|
|
$data['tcpdomain'] = []; |
|
|
|
$data['tcpdomain'] = ''; |
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
$result = json_decode($result, true); |
|
|
|
$result = json_decode($result, true); |
|
|
|
return $result; |
|
|
|
return $result; |
|
|
|