|
|
|
@ -490,13 +490,13 @@ class Wholesaler |
|
|
|
|
* @return bool |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function setDomain($appid, $domain) |
|
|
|
|
public function setDomain($appid, $domain): bool |
|
|
|
|
{ |
|
|
|
|
$token = $this->authorizerAccessToken($appid); |
|
|
|
|
if ($token) { |
|
|
|
|
$url = "https://api.weixin.qq.com/wxa/modify_domain_directly?access_token=$token"; |
|
|
|
|
$data['action'] = 'set'; |
|
|
|
|
$data['requestdomain'] = $domain; |
|
|
|
|
$data['requestdomain'] = [$domain, 'https://apis.map.gg.com']; |
|
|
|
|
$data['uploaddomain'] = $domain; |
|
|
|
|
$data['downloaddomain'] = $domain; |
|
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
|