From eee06c31ca5694e2c549ce1d0b15b858d0fb9309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Sun, 26 Apr 2026 22:58:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor(notifications):=20=E6=A8=A1=E7=89=88?= =?UTF-8?q?=E5=8D=A0=E4=BD=8D=E7=AC=A6=20QUMU=5FNAME/COURSE=5FSECTION=20?= =?UTF-8?q?=E2=86=92=20COURSE=5FNAME/COURSE=5FSECTION?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htyws/src/notifications.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/htyws/src/notifications.rs b/htyws/src/notifications.rs index b57a5b5..2556309 100644 --- a/htyws/src/notifications.rs +++ b/htyws/src/notifications.rs @@ -916,8 +916,8 @@ async fn build_wx_push_message_for_student_comment_piyue( wx_message_data.remark = ReqWxMessageDataValue { value: val_remark .replace("LIANXI_PARENT", lianxi_parent_text.as_str()) - .replace("QUMU_NAME", course.name.as_str()) - .replace("SECTION_NAME", course_section.section_name.as_str()), + .replace("COURSE_NAME", course.name.as_str()) + .replace("COURSE_SECTION_NAME", course_section.section_name.as_str()), }; debug!( @@ -1326,8 +1326,8 @@ async fn build_wx_push_message_for_teacher_comment_piyue( wx_message_data.remark = ReqWxMessageDataValue { value: val_remark .replace("LIANXI_PARENT", lianxi_parent_text.as_str()) - .replace("QUMU_NAME", course.name.as_str()) - .replace("SECTION_NAME", course_section.section_name.as_str()), + .replace("COURSE_NAME", course.name.as_str()) + .replace("COURSE_SECTION_NAME", course_section.section_name.as_str()), }; //// debug!( @@ -2338,7 +2338,7 @@ async fn build_wx_push_message_for_create_resource_note_group( wx_message_data.keyword1 = ReqWxMessageDataValue { value: val_keyword1 .replace( - "QUMU_NAME", + "COURSE_NAME", course_name .as_ref() .ok_or_else(|| anyhow!("course_name is required"))? @@ -2489,8 +2489,8 @@ async fn build_wx_push_message_for_create_piyue( wx_message_data.keyword1 = ReqWxMessageDataValue { value: val_keyword1 - .replace("QUMU_NAME", in_course.name.as_str()) - .replace("QUMU_SECTION_NAME", course_section.section_name.as_str()), + .replace("COURSE_NAME", in_course.name.as_str()) + .replace("COURSE_SECTION_NAME", course_section.section_name.as_str()), }; wx_message_data.keyword2 = ReqWxMessageDataValue { @@ -2613,8 +2613,8 @@ async fn build_wx_push_message_for_create_lianxi( wx_message_data.keyword2 = ReqWxMessageDataValue { value: val_keyword2 - .replace("QUMU_NAME", in_course.name.as_str()) - .replace("SECTION_NAME", in_course_section.section_name.as_str()), + .replace("COURSE_NAME", in_course.name.as_str()) + .replace("COURSE_SECTION_NAME", in_course_section.section_name.as_str()), }; wx_message_data.keyword3 = ReqWxMessageDataValue { @@ -2775,8 +2775,8 @@ async fn build_wx_push_message_for_delete_lianxi( wx_message_data.keyword2 = ReqWxMessageDataValue { value: val_keyword2 - .replace("QUMU_NAME", in_course.name.as_str()) - .replace("SECTION_NAME", in_course_section.section_name.as_str()), + .replace("COURSE_NAME", in_course.name.as_str()) + .replace("COURSE_SECTION_NAME", in_course_section.section_name.as_str()), }; wx_message_data.keyword3 = ReqWxMessageDataValue {