From b4dbf80566e55637b9e514f0ad5717e90189dcf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A2=8E=E5=BF=B5=5FNian?= Date: Sun, 4 Feb 2024 14:54:08 +0800 Subject: [PATCH] Update main.py --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 76b5ed5..af5f2e6 100644 --- a/main.py +++ b/main.py @@ -192,6 +192,7 @@ with open("grade.txt", "r") as grade_file, open("old_grade.txt", "r") as old_gra # 第一次运行时的提示文本 first_run_text = ( + "你的程序运行成功\n" "从现在开始,程序将会每隔 30 分钟自动检测成绩是否有更新\n" "若有更新,将通过微信推送及时通知你\n" "------" @@ -218,11 +219,11 @@ if run_count == 1: print(f"旧成绩:{old_grade_content}") print("------") else: - print(f"你的程序运行成功\n{first_run_text}") + print(first_run_text) # 推送信息 first_run_text_response_text = send_message( - token, "你的程序运行成功", f"{first_run_text}\n{workflow_info}" + token, "正方教务管理系统成绩推送", f"{first_run_text}\n{workflow_info}" ) # 解析 JSON 数据