fix: no accounts no send msg

This commit is contained in:
wangruidong
2024-08-14 19:20:29 +08:00
committed by Bryan
parent ac0c6ef3d5
commit 647beffc01
7 changed files with 14 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ class WeCom(BackendBase):
def send_msg(self, users, message, subject=None):
accounts, __, __ = self.get_accounts(users)
if not accounts:
return
return self.wecom.send_text(accounts, message, markdown=True)