|
@@ -151,16 +151,9 @@ func (this *ArticleController) Detail() {
|
|
|
key := "CYGX_ARTICLE_READ" + strconv.Itoa(articleId) + "_" + strconv.Itoa(uid)
|
|
|
if !utils.Rc.IsExist(key) {
|
|
|
go services.ArticleUserRemind(user, detail, 1)
|
|
|
+ // 互动提醒
|
|
|
+ go services.SendWxCategoryMsgInteractive(user, "阅读报告", articleId, detail.Title)
|
|
|
utils.Rc.Put(key, 1, 30*time.Second)
|
|
|
- go services.ArticleHistory(articleId, user)
|
|
|
- //30分钟之内阅读同一篇文章不错二次推送
|
|
|
- key := "CYGX_ARTICLE_READ" + strconv.Itoa(articleId) + "_" + strconv.Itoa(uid)
|
|
|
- if !utils.Rc.IsExist(key) {
|
|
|
- go services.ArticleUserRemind(user, detail, 1)
|
|
|
- // 互动提醒
|
|
|
- go services.SendWxCategoryMsgInteractive(user, "阅读报告", articleId, detail.Title)
|
|
|
- utils.Rc.Put(key, 1, 30*time.Second)
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
interviewApplyItem, err := models.GetArticleInterviewApply(uid, articleId)
|