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

@@ -340,7 +340,8 @@ class MemberManager(QWidget):
for _ in range(3):
try:
response = requests.get(
"https://mirrorchyan.com/api/resources/MAA/latest?user_agent=AutoMaaGui&os=win&arch=x64&channel=stable"
"https://mirrorchyan.com/api/resources/MAA/latest?user_agent=AutoMaaGui&os=win&arch=x64&channel=stable",
timeout=10,
)
maa_info = response.json()
break