|
@@ -227,7 +227,7 @@ func (n *NoMsgTipJob) toTip(taskType int, user *UserInfo, wxTplSurplus int64, no
|
|
|
logger.Info("无消息提醒任务", taskType, "邮箱推送结束", isMailPushOk, user.Id)
|
|
|
}
|
|
|
if isWxPushOk || isAppPushOk || isMailPushOk {
|
|
|
- n.saveLog(user.Id, firstAutoId)
|
|
|
+ n.saveLog(user, firstAutoId, isNewestBid)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -273,10 +273,10 @@ func (n *NoMsgTipJob) SubRecommend(user *UserInfo) (string, string, string, stri
|
|
|
}
|
|
|
|
|
|
//
|
|
|
-func (n *NoMsgTipJob) saveLog(userId string, autoId int64) {
|
|
|
+func (n *NoMsgTipJob) saveLog(user *UserInfo, autoId int64, isNewestBid bool) {
|
|
|
n.savePool <- true
|
|
|
defer func() {
|
|
|
<-n.savePool
|
|
|
}()
|
|
|
- VarRecommend.SaveLog(Mgo_Log, userId, autoId)
|
|
|
+ VarRecommend.SaveLog(Mgo_Log, user.Id, autoId, "free", user.Phone != "", isNewestBid)
|
|
|
}
|