mirror of https://github.com/openspug/spug
F 修复钉钉告警错误的提示需要设置调用凭据的问题
parent
e68677a62f
commit
ce96e01225
|
@ -61,10 +61,7 @@ def notify_by_email(event, subject, grp):
|
||||||
|
|
||||||
|
|
||||||
def notify_by_dd(event, subject, grp):
|
def notify_by_dd(event, subject, grp):
|
||||||
spug_key, u_ids = _parse_args(grp)
|
_, u_ids = _parse_args(grp)
|
||||||
if not spug_key:
|
|
||||||
Notify.make_notify(notify_source, '1', '发送报警信息失败', '未配置报警服务调用凭据,请在系统管理/系统设置/报警服务设置中配置。')
|
|
||||||
return
|
|
||||||
users = set(x.ding for x in Contact.objects.filter(id__in=u_ids, ding__isnull=False))
|
users = set(x.ding for x in Contact.objects.filter(id__in=u_ids, ding__isnull=False))
|
||||||
if users:
|
if users:
|
||||||
texts = [
|
texts = [
|
||||||
|
|
Loading…
Reference in New Issue