|
|
@ -462,6 +462,21 @@ class Server |
|
|
|
return $list; |
|
|
|
return $list; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function setDomainDirectly($appid, $domain) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$url = 'https://api.weixin.qq.com/wxa/modify_domain_directly?access_token=' . $this->authorizerAccessToken($appid); |
|
|
|
|
|
|
|
$data['action'] = 'set'; |
|
|
|
|
|
|
|
$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; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function apiText($authorization_code, $touser) |
|
|
|
public function apiText($authorization_code, $touser) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/component/api_query_auth?component_access_token=' . $this->getComponentAccessToken(); |
|
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/component/api_query_auth?component_access_token=' . $this->getComponentAccessToken(); |
|
|
|