feat: 更新接口

This commit is contained in:
耗子 2024-03-09 03:53:48 +08:00
parent 2223b022b7
commit cd8e420e81
4 changed files with 7 additions and 7 deletions

View file

@ -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 ) {