|
|
@ -656,7 +656,7 @@ class Wholesaler |
|
|
|
$token = $this->authorizerAccessToken($appid); |
|
|
|
$token = $this->authorizerAccessToken($appid); |
|
|
|
if ($token) { |
|
|
|
if ($token) { |
|
|
|
$url = "https://api.weixin.qq.com/wxa/setwebviewdomain?access_token=$token"; |
|
|
|
$url = "https://api.weixin.qq.com/wxa/setwebviewdomain?access_token=$token"; |
|
|
|
$data['action'] = 'set'; |
|
|
|
$data['action'] = 'add'; |
|
|
|
$data['webviewdomain'] = $domain; |
|
|
|
$data['webviewdomain'] = $domain; |
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
$result = json_decode($result, true); |
|
|
|
$result = json_decode($result, true); |
|
|
|