Skip to content

Commit 9903579

Browse files
committed
update: 更新检查链接
1 parent ead4a14 commit 9903579

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

com_tool.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ def check_update(ini_config):
7676
if MAIN_VERSION == config_version:
7777
print(f"当前程序版本为v{MAIN_VERSION}, 配置文件版本为v{config_version}")
7878
# 远程检查更新
79-
check_url = "https://github.com/GOOD-AN/mys_exch_goods/raw/main/update_log.json"
79+
check_url = "https://fastly.jsdelivr.net/gh/GOOD-AN/mys_exch_goods@latest/update_log.json"
8080
check_info = requests.get(check_url).json()
8181
remote_least_version = check_info['least_version'].split('.')
8282
local_version = MAIN_VERSION.split('.')
8383
if compare_version(remote_least_version, local_version) == 1:
8484
print("版本过低, 程序将停止运行")
85-
time.sleep(3000)
85+
time.sleep(3)
8686
sys.exit()
8787
remote_last_vesion = check_info['last_vesion'].split('.')
8888
if compare_version(local_version, remote_last_vesion) == -1:
@@ -107,7 +107,8 @@ def check_update(ini_config):
107107
print("强制退出")
108108
sys.exit()
109109
except Exception as err:
110-
print(err)
110+
print(f"检查更新失败, 原因为{err}")
111+
input("按回车键继续")
111112
return None
112113

113114

0 commit comments

Comments
 (0)