fix(maa): 修复森空岛签到信息特定情况下不弹出通知的问题

This commit is contained in:
DLmaster361
2025-06-13 10:02:43 +08:00
parent a9b3b8b6f4
commit b3aa4fc776
2 changed files with 12 additions and 2 deletions

View File

@@ -244,9 +244,17 @@ class MaaManager(QObject):
"info",
f"森空岛签到{type}",
"".join(user_list),
-1,
-1 if type == "失败" else 5000,
)
if skland_result["总计"] == 0:
self.push_info_bar.emit(
"info",
"森空岛签到失败",
user[0],
-1,
)
if (
skland_result["总计"] > 0
and len(skland_result["失败"]) == 0

View File

@@ -153,7 +153,9 @@ def skland_sign_in(token) -> dict:
headers=header_login,
).json()
if rsp["status"] != 0:
raise Exception(f'使用token: {token} 获得认证代码失败:{rsp.get("msg")}')
raise Exception(
f'使用token: {token[:3]}******{token[-3:]} 获得认证代码失败:{rsp.get("msg")}'
)
return rsp["data"]["code"]
# 获取已绑定的角色列表