zwxi 10 months ago
parent
commit
388cd6f1c9
2 changed files with 3 additions and 3 deletions
  1. 2 2
      controllers/article.go
  2. 1 1
      services/wx_category_template_msg.go

+ 2 - 2
controllers/article.go

@@ -309,7 +309,7 @@ func (this *ArticleController) Detail() {
 				//30分钟之内阅读同一篇文章不错二次推送
 				key := "CYGX_ARTICLE_READ" + strconv.Itoa(articleId) + "_" + strconv.Itoa(uid)
 				if !utils.Rc.IsExist(key) {
-					go services.ArticleUserRemind(user, detail, 1)
+					//go services.ArticleUserRemind(user, detail, 1)
 					// 互动提醒
 					go services.SendWxCategoryMsgInteractive(user, "阅读报告", articleId)
 					utils.Rc.Put(key, 1, 30*time.Second)
@@ -543,7 +543,7 @@ func (this *ArticleController) ArticleCollect() {
 		br.Msg = "收藏成功"
 		resp.Status = 1
 		// 文章收藏消息发送
-		go services.ArticleUserRemind(user, detail, 2)
+		//go services.ArticleUserRemind(user, detail, 2)
 		go services.ArticleHistoryUserLabelLogAdd(articleId, user.UserId)
 		// 互动提醒
 		go services.SendWxCategoryMsgInteractive(user, "收藏报告", articleId)

+ 1 - 1
services/wx_category_template_msg.go

@@ -632,7 +632,7 @@ func SendWxCategoryMsgSpecialFollow(specialId int) (err error) {
 // 文章互动相关类目模版消息
 func SendWxCategoryMsgInteractive(user *models.WxUserItem, interactive string, articleId int) (err error) {
 	//30秒内阅读同一篇报告不做重复推送
-	key := "CYGX_" + utils.CYGX_OBJ_RESEARCHSUMMARY + "_READ" + strconv.Itoa(articleId) + "_" + strconv.Itoa(user.UserId)
+	key := "CYGX_" + utils.CYGX_OBJ_RESEARCHSUMMARY + "_READ" + strconv.Itoa(articleId) + "_" + strconv.Itoa(user.UserId)+ "_CATEGORY"
 	if utils.Rc.IsExist(key) {
 		return
 	}