|
|
|
@ -475,11 +475,11 @@ class Server |
|
|
|
|
$url = "https://api.weixin.qq.com/wxa/modify_domain_directly?access_token=$token"; |
|
|
|
|
$data['action'] = 'set'; |
|
|
|
|
$data['requestdomain'] = $domain; |
|
|
|
|
$data['wsrequestdomain'] = 'ws://www.royaum.com.cn'; |
|
|
|
|
// $data['wsrequestdomain'] = ''; |
|
|
|
|
$data['uploaddomain'] = $domain; |
|
|
|
|
$data['downloaddomain'] = $domain; |
|
|
|
|
$data['udpdomain'] = 'udp://www.royaum.com.cn'; |
|
|
|
|
$data['tcpdomain'] = 'tcp://www.royaum.com.cn'; |
|
|
|
|
// $data['udpdomain'] = ''; |
|
|
|
|
// $data['tcpdomain'] = ''; |
|
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
|
$result = json_decode($result, true); |
|
|
|
|
return $result; |
|
|
|
|