|
|
|
@ -480,7 +480,6 @@ class Server |
|
|
|
|
$data['downloaddomain'] = $domain; |
|
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
|
$result = json_decode($result, true); |
|
|
|
|
return $result; |
|
|
|
|
if ($result && !empty($result['errmsg']) && $result['errmsg'] == 'ok') { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
@ -494,7 +493,7 @@ class Server |
|
|
|
|
* @return bool |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function getPrivacySetting($appid) |
|
|
|
|
public function getPrivacySetting($appid): bool |
|
|
|
|
{ |
|
|
|
|
$token = $this->authorizerAccessToken($appid); |
|
|
|
|
if ($token) { |
|
|
|
@ -513,7 +512,6 @@ class Server |
|
|
|
|
$data['owner_setting']['notice_method'] = '公告'; |
|
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
|
$result = json_decode($result, true); |
|
|
|
|
return $result; |
|
|
|
|
if ($result && !empty($result['errmsg']) && $result['errmsg'] == 'ok') { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|