|
@@ -632,7 +632,7 @@ func SendActivitieSignCategoryTemplateMsg(user *models.WxUserItem, activityDetai
|
|
|
}
|
|
|
|
|
|
// 文章互动相关类目模版消息
|
|
|
-func SendWxCategoryMsgInteractive(user *models.WxUserItem, interactive string, articleId int, articleDetail *models.ArticleDetail) (err error) {
|
|
|
+func SendWxCategoryMsgInteractive(user *models.WxUserItem, interactive string, articleId int, title string) (err error) {
|
|
|
//30秒内阅读同一篇报告不做重复推送
|
|
|
key := "CYGX_" + utils.CYGX_OBJ_RESEARCHSUMMARY + "_READ" + strconv.Itoa(articleId) + "_" + strconv.Itoa(user.UserId)+ "_CATEGORY"
|
|
|
if utils.Rc.IsExist(key) {
|
|
@@ -672,7 +672,7 @@ func SendWxCategoryMsgInteractive(user *models.WxUserItem, interactive string, a
|
|
|
keyword1 = user.RealName + "-" + user.CompanyName
|
|
|
keyword1 = utils.TruncateActivityNameString(keyword1)
|
|
|
keyword2 = fmt.Sprint("互动提醒:", interactive)
|
|
|
- keyword3 = utils.TruncateActivityNameString(articleDetail.Title)
|
|
|
+ keyword3 = utils.TruncateActivityNameString(title)
|
|
|
keyword4 = time.Now().Format(utils.FormatDateTimeMinute2)
|
|
|
openIdArr := make([]string, 0)
|
|
|
for _, v := range openIdList {
|