mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-06 21:53:56 +08:00
feat: 更新接口
This commit is contained in:
parent
2223b022b7
commit
cd8e420e81
4 changed files with 7 additions and 7 deletions
|
@ -55,9 +55,9 @@ class Monitor {
|
|||
* 检查应用市场可用性
|
||||
*/
|
||||
public function maybe_check_store() {
|
||||
$test_url = 'https://api.wenpai.org/china-yes/version-check';
|
||||
$test_url = 'https://api.wenpai.net/china-yes/version-check';
|
||||
if ( $this->settings['store'] == 'proxy' ) {
|
||||
$test_url = 'http://wpa.cdn.haozi.net/core/version-check/1.7/';
|
||||
$test_url = 'https://api.wpmirror.com/core/version-check/1.7/';
|
||||
}
|
||||
$response = wp_remote_get( $test_url );
|
||||
if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue