Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复 Pushplus 推送错误 #651

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions arknights_mower/utils/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def handle_serverJang_error(self, url, data):
break
else:
logger.error(
f"Server酱通知发送失败,错误信息:{json_data.get('message')}"
f"Server酱通知发送失败,错误信息:{json_data.get("message")}"
)
csleep(delay)
except Exception as e:
Expand All @@ -803,7 +803,7 @@ def handle_pushplus_error(self, data):
break
else:
logger.error(
f"PushPlus通知发送失败,错误信息:{json_data.get('msg')}"
f"PushPlus通知发送失败,错误信息:{json_data.get("msg")}"
)
csleep(delay)
except Exception as e:
Expand Down Expand Up @@ -934,7 +934,7 @@ def send_message_old(
"token": token,
"title": "Mower通知",
"content": body,
"template": "markdown",
"template": "html",
}

try:
Expand All @@ -944,7 +944,7 @@ def send_message_old(
logger.info("PushPlus通知发送成功")
else:
logger.error(
f"PushPlus通知发送失败,错误信息:{json_data.get('msg')}"
f"PushPlus通知发送失败,错误信息:{json_data.get("msg")}"
)
except Exception as e:
logger.error("PushPlus通知发送失败")
Expand Down