From cd8e420e81d2504e2d444d5ffc409413e501b01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 9 Mar 2024 03:53:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Monitor.php | 4 ++-- Service/Setting.php | 2 +- Service/Super.php | 6 +++--- Service/Update.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Service/Monitor.php b/Service/Monitor.php index a147a36..d80b9f3 100644 --- a/Service/Monitor.php +++ b/Service/Monitor.php @@ -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 ) { diff --git a/Service/Setting.php b/Service/Setting.php index 32818ba..588d1bb 100644 --- a/Service/Setting.php +++ b/Service/Setting.php @@ -153,7 +153,7 @@ class Setting { echo <<
-

文派叶子🍃(WP-China-Yes)

+

文派叶子🍃(WP-China-Yes)

将您的 WordPress 接入本土生态体系,这将为您提供一个更贴近中国人使用习惯的 WordPress。

100% 开源代码,一起参与文派(WordPress)软件国产化进程,打造属于您自己的开源自助建站程序。

diff --git a/Service/Super.php b/Service/Super.php index d3b0ee4..d103155 100644 --- a/Service/Super.php +++ b/Service/Super.php @@ -225,11 +225,11 @@ class Super { } if ( $this->settings['store'] == 'wenpai' ) { - $url = str_replace( 'api.wordpress.org', 'api.wenpai.org', $url ); + $url = str_replace( 'api.wordpress.org', 'api.wenpai.net', $url ); } else { - $url = str_replace( 'api.wordpress.org', 'wpa.cdn.haozi.net', $url ); + $url = str_replace( 'api.wordpress.org', 'api.wpmirror.com', $url ); } - $url = str_replace( 'downloads.wordpress.org', 'wpd.cdn.haozi.net', $url ); + $url = str_replace( 'downloads.wordpress.org', 'downloads.wenpai.net', $url ); $curl_version = '1.0.0'; if ( function_exists( 'curl_version' ) ) { diff --git a/Service/Update.php b/Service/Update.php index daccdd7..e102b82 100644 --- a/Service/Update.php +++ b/Service/Update.php @@ -15,7 +15,7 @@ class Update { public function __construct() { PucFactory::buildUpdateChecker( - 'https://api.wenpai.org/china-yes/version-check', + 'https://api.wenpai.net/china-yes/version-check', CHINA_YES_PLUGIN_FILE, 'wp-china-yes' );