mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-07 02:10:23 +00:00
fix: no accounts no send msg
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user