From 7ff046180382e32bc14c2bf8cc22653d9380da94 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Wed, 4 Mar 2026 23:06:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_notice/controllers/main.py | 3 ++- yuthon_notice/models/yuthon_confirm_users.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/yuthon_notice/controllers/main.py b/yuthon_notice/controllers/main.py index 3284c8e47..f2a1a6958 100644 --- a/yuthon_notice/controllers/main.py +++ b/yuthon_notice/controllers/main.py @@ -90,7 +90,8 @@ class YuthonNotice(http.Controller): 'title': notice.name, 'read_number': '0', 'notice_text': notice.notice_text1, - 'file_list': file_list + 'file_list': file_list, + 'is_notice_roger': notice.is_notice_roger, } return json.dumps({ 'code': 200, diff --git a/yuthon_notice/models/yuthon_confirm_users.py b/yuthon_notice/models/yuthon_confirm_users.py index da9ab54e3..54338c1bc 100644 --- a/yuthon_notice/models/yuthon_confirm_users.py +++ b/yuthon_notice/models/yuthon_confirm_users.py @@ -49,8 +49,10 @@ class YuthonConfirmUsers(models.Model): url=url, btntxt="详细信息") if result_data: res_dict = result_data[1] + rec.write({'msg_id': res_dict.get('msgid')}) if res_dict.get('errmsg') == 'ok': i = i + 1 + url = f'https://phone.thtzjt.com/phone/Notice/{self.notice_id.id}?employee_id=298' self.sudo().env["wecom.apps"].sync_send_message_textcard(category='notice', touser='18562027762',