Skip to content

Commit

Permalink
补充遗漏的企业微信自建应用的通知
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored and hhyo committed Nov 25, 2023
1 parent 90fc156 commit 4e0ff04
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sql/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,22 @@ def send(self):
)


class QywxToUserNotifier(LegacyRender):
name = "qywx_to_user"
sys_config_key: str = "wx"

def send(self):
msg_sender = MsgSender()
for m in self.messages:
msg_to_wx_user = [
user.wx_user_id if user.wx_user_id else user.username
for user in chain(m.msg_to, m.msg_cc)
]
msg_sender.send_wx2user(
f"{msg_title}\n{msg_content}", msg_to_wx_user
)


class MailNotifier(LegacyRender):
name = "mail"
sys_config_key = "mail"
Expand Down

0 comments on commit 4e0ff04

Please sign in to comment.