|
|
|
@ -487,6 +487,18 @@ class Server |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getPrivacySetting($appid) |
|
|
|
|
{ |
|
|
|
|
$token = $this->authorizerAccessToken($appid); |
|
|
|
|
if ($token) { |
|
|
|
|
$url = "https://api.weixin.qq.com/cgi-bin/component/getprivacysetting?access_token=$token"; |
|
|
|
|
$data['privacy_ver'] = 1; |
|
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
|
return json_decode($result, true); |
|
|
|
|
} |
|
|
|
|
return []; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function apiText($authorization_code, $touser) |
|
|
|
|
{ |
|
|
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/component/api_query_auth?component_access_token=' . $this->getComponentAccessToken(); |
|
|
|
|