feat: 下载站改用域名访问

This commit is contained in:
DLmaster361
2025-08-29 12:30:30 +08:00
parent e26ca8e81a
commit 928746fe88
2 changed files with 4 additions and 6 deletions

View File

@@ -1555,7 +1555,7 @@ class AppConfig(GlobalConfig):
):
res_stage_info.append(RESOURCE_STAGE_DROP_INFO[stage["value"]])
return {
"SideStory": json.loads(self.get("Data", "Stage")).get("Info", []),
"Activity": json.loads(self.get("Data", "Stage")).get("Info", []),
"Resource": res_stage_info,
}
else:
@@ -1819,7 +1819,7 @@ class AppConfig(GlobalConfig):
try:
response = requests.get(
"http://221.236.27.82:10197/d/AUTO_MAA/Server/notice.json",
"https://download.auto-mas.top/d/AUTO_MAA/Server/notice.json",
timeout=10,
proxies=self.get_proxies(),
)

View File

@@ -247,13 +247,11 @@ if version.parse(remote_version) > version.parse(current_version):
download_url = response.url
else:
print(f"MirrorChyan 未返回下载链接,使用自建下载站")
download_url = (
f"http://221.236.27.82:10197/d/AUTO_MAA/AUTO_MAA_{remote_version}.zip"
)
download_url = f"https://download.auto-mas.top/d/AUTO_MAA/AUTO_MAA_{remote_version}.zip"
elif download_source == "AutoSite":
download_url = (
f"http://221.236.27.82:10197/d/AUTO_MAA/AUTO_MAA_{remote_version}.zip"
f"https://download.auto-mas.top/d/AUTO_MAA/AUTO_MAA_{remote_version}.zip"
)
else: