update to 2.2
This commit is contained in:
@@ -7,7 +7,7 @@ function checkThemeUpdate()
|
||||
$api_url = 'https://versioncheck.imakashi.eu.org/?themeRomanticism';
|
||||
$response = @file_get_contents($api_url);
|
||||
if ($response === FALSE) {
|
||||
return json_encode(["error" => "暂时无法连接到更新服务器"]);
|
||||
return json_encode(["error" => "无法连接到更新服务器"]);
|
||||
}
|
||||
|
||||
$data = json_decode($response, true);
|
||||
@@ -17,7 +17,7 @@ function checkThemeUpdate()
|
||||
|
||||
// 返回更新数据
|
||||
return json_encode([
|
||||
"current_version" => '2.1',
|
||||
"current_version" => '2.2',
|
||||
"latest_version" => $data['version'],
|
||||
"update_url" => $data['url'],
|
||||
"feature" => $data['feature']
|
||||
|
Reference in New Issue
Block a user