fix: request 添加超时限制

This commit is contained in:
DLmaster361
2025-04-14 15:03:29 +08:00
parent 7e502420fa
commit 4a6f874210
7 changed files with 56 additions and 24 deletions

View File

@@ -599,7 +599,7 @@ class MaaUserConfig(QConfig):
class AppConfig(GlobalConfig):
VERSION = "4.3.3.0"
VERSION = "4.3.3.1"
gameid_refreshed = Signal()
PASSWORD_refreshed = Signal()
@@ -678,7 +678,8 @@ class AppConfig(GlobalConfig):
for _ in range(3):
try:
response = requests.get(
"https://ota.maa.plus/MaaAssistantArknights/api/gui/StageActivity.json"
"https://ota.maa.plus/MaaAssistantArknights/api/gui/StageActivity.json",
timeout=10,
)
gameid_infos: List[
Dict[str, Union[str, Dict[str, Union[str, int]]]]