mirror of https://github.com/openspug/spug
#368 Fix an wrong message notify when spug sends wx notify.
parent
3140c9ca43
commit
9e974dc624
|
@ -57,7 +57,7 @@ class Notification:
|
|||
|
||||
def _by_wx(self):
|
||||
if not self.spug_key:
|
||||
Notify.make_notify(notify_source, '1', '发送报警信息失败', '未配置报警服务调用凭据,请在系统管理/系统设置/报警服务设置中配置。')
|
||||
Notify.make_notify(notify_source, '1', '发送报警信息失败', '未配置报警服务调用凭据,请在系统管理/系统设置/基本设置/调用凭据中配置。')
|
||||
return
|
||||
users = set(x.wx_token for x in Contact.objects.filter(id__in=self.u_ids, wx_token__isnull=False))
|
||||
if users:
|
||||
|
|
Loading…
Reference in New Issue