From 5641763d88341121bc5a7d5a57eb527e1bba4f00 Mon Sep 17 00:00:00 2001 From: codefly67 Date: Mon, 11 Dec 2023 11:24:43 +0800 Subject: [PATCH] Adapt to WeChat applet automatic create bugs --- lyrebird_bugit/event_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lyrebird_bugit/event_handler.py b/lyrebird_bugit/event_handler.py index 80f0092..ed373d4 100644 --- a/lyrebird_bugit/event_handler.py +++ b/lyrebird_bugit/event_handler.py @@ -64,5 +64,6 @@ def on_upload_files(msg): def on_notice(msg): sender_file = msg.get('sender', {}).get('file', '') autoissue_checker = application.config.get('event.notice.autoissue.checker', []) - if sender_file in autoissue_checker: + autoissue_mptools = application.config.get('event.notice.autoissue.mptools.senderfile', []) + if sender_file in autoissue_checker or sender_file in autoissue_mptools: template_loader.notice_handler(msg)