|
@@ -201,7 +201,7 @@ func (n *NoMsgTipJob) toTip(taskType int, user *UserInfo, wxTplSurplus int64, no
|
|
isWxPushOk = n.sendWeixin(user, firstTitle, area, jcly, infoCount, firstId, isNewestBid)
|
|
isWxPushOk = n.sendWeixin(user, firstTitle, area, jcly, infoCount, firstId, isNewestBid)
|
|
logger.Info("无消息提醒任务", taskType, "微信推送结束", isWxPushOk, user.Id)
|
|
logger.Info("无消息提醒任务", taskType, "微信推送结束", isWxPushOk, user.Id)
|
|
} else {
|
|
} else {
|
|
- if noMsgTipLastId.Load().(string) < user.Id {
|
|
|
|
|
|
+ if noMsgTipLastId.Load() == nil || noMsgTipLastId.Load().(string) < user.Id {
|
|
noMsgTipLastId.Store(user.Id)
|
|
noMsgTipLastId.Store(user.Id)
|
|
}
|
|
}
|
|
logger.Info("无消息提醒任务", taskType, "超过剩余模板消息量,不再推送微信", user.Id)
|
|
logger.Info("无消息提醒任务", taskType, "超过剩余模板消息量,不再推送微信", user.Id)
|