|
@@ -92,7 +92,7 @@ func (n *NoMsgTipJob) Execute(taskType, hour int) {
|
|
|
logger.Info("无消息提醒任务结束。。。", taskType, hour)
|
|
|
}
|
|
|
|
|
|
-//提醒
|
|
|
+// 提醒
|
|
|
func (n *NoMsgTipJob) tip(taskType, hour int, user *UserInfo) {
|
|
|
now := time.Now()
|
|
|
startEndMd := ""
|
|
@@ -183,7 +183,7 @@ func (n *NoMsgTipJob) tip(taskType, hour int, user *UserInfo) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-//推送微信
|
|
|
+// 推送微信
|
|
|
func (n *NoMsgTipJob) sendWeixin(user *UserInfo, firstTitle, area, jcly string, infoCount int) bool {
|
|
|
tmplData := map[string]*qrpc.TmplItem{
|
|
|
"thing3": &qrpc.TmplItem{
|
|
@@ -211,7 +211,6 @@ func (n *NoMsgTipJob) sendWeixin(user *UserInfo, firstTitle, area, jcly string,
|
|
|
return ok
|
|
|
}
|
|
|
|
|
|
-//
|
|
|
func (n *NoMsgTipJob) SubRecommend(user *UserInfo) (string, string, string, string, int, int64, string, bool) {
|
|
|
n.selectPool <- true
|
|
|
defer func() {
|
|
@@ -220,7 +219,7 @@ func (n *NoMsgTipJob) SubRecommend(user *UserInfo) (string, string, string, stri
|
|
|
return VarRecommend.SubRecommend(Mysql_Push, Config.JianyuDomain, user.Id, Config.NoMsgTip.Mail.Content, user.PushSet.SubSet.MailPush, 10)
|
|
|
}
|
|
|
|
|
|
-//超级订阅推送数量
|
|
|
+// 超级订阅推送数量
|
|
|
func (n *NoMsgTipJob) pushCount(baseUserId int64, start, end int64) int64 {
|
|
|
n.selectPool <- true
|
|
|
defer func() {
|
|
@@ -229,11 +228,10 @@ func (n *NoMsgTipJob) pushCount(baseUserId int64, start, end int64) int64 {
|
|
|
return Mysql_Push.CountBySql(`select count(1) from pushsubscribe where userid=? and date>=? and date<=?`, baseUserId, start, end)
|
|
|
}
|
|
|
|
|
|
-//
|
|
|
func (n *NoMsgTipJob) saveLog(userId string, autoId int64) {
|
|
|
n.savePool <- true
|
|
|
defer func() {
|
|
|
<-n.savePool
|
|
|
}()
|
|
|
- VarRecommend.SaveLog(Mgo_Log, userId, autoId)
|
|
|
+ VarRecommend.SaveLog(Mgo_Log, userId, autoId, "supersub", false, false)
|
|
|
}
|