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

@@ -11,6 +11,8 @@ class SMS(BackendBase):
def send_msg(self, users, sign_name: str, template_code: str, template_param: dict):
accounts, __, __ = self.get_accounts(users)
if not accounts:
return
return self.client.send_sms(accounts, sign_name, template_code, template_param)