|
@@ -95,10 +95,11 @@ func CheckSmsSend(cont context.Context) (err error) {
|
|
|
return err
|
|
|
}
|
|
|
listLen := len(list)
|
|
|
- msgBody := "聚酯短信有: " + strconv.Itoa(listLen) + " 条未推送"
|
|
|
- go SendAlarmMsgByDingTalkRelease(utils.APPNAME, utils.RunMode, msgBody, 3)
|
|
|
-
|
|
|
- //发送短信
|
|
|
- SendSms()
|
|
|
+ if listLen > 5 {
|
|
|
+ msgBody := "聚酯短信有: " + strconv.Itoa(listLen) + " 条未推送"
|
|
|
+ go SendAlarmMsgByDingTalkRelease(utils.APPNAME, utils.RunMode, msgBody, 3)
|
|
|
+ //发送短信
|
|
|
+ SendSms()
|
|
|
+ }
|
|
|
return err
|
|
|
}
|