Roc 2 年之前
父節點
當前提交
eb8d336972
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/alaram_msg.go

+ 1 - 1
controllers/alaram_msg.go

@@ -57,7 +57,7 @@ func (this *AlarmMsgController) SmsSend() {
 					emailToUser = configItem.ConfigValue
 				}
 			}
-			if emailToUser != `nil` {
+			if emailToUser != `` {
 				go services.SendAlarmMsgByEmail(req.ProjectName, req.RunMode, req.MsgBody, emailToUser, req.Level)
 			}
 		}