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