wang hou sheng 8 months ago
parent 90128dd53e
commit c7f03676c7
  1. 8
      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;

Loading…
Cancel
Save