Browse Source

强制展示微信模版消息的逻辑

xingzai 2 years ago
parent
commit
87551719f3
3 changed files with 3 additions and 0 deletions
  1. 1 0
      controllers/activity.go
  2. 1 0
      controllers/article.go
  3. 1 0
      controllers/report.go

+ 1 - 0
controllers/activity.go

@@ -676,6 +676,7 @@ func (this *ActivityCoAntroller) Detail() {
 		br.ErrMsg = "活动ID错误,Err:" + "activityId:" + strconv.Itoa(activityId)
 		return
 	}
+	activityInfo.IsShowFollowButton = true
 	if activityInfo.ActivityTypeId == utils.C_CLASS_ACTIVITY_TYPE_ID {
 		activityInfo.IsCClassMeeting = true
 	}

+ 1 - 0
controllers/article.go

@@ -82,6 +82,7 @@ func (this *ArticleController) Detail() {
 		br.ErrMsg = "获取信息失败,Err:" + err.Error()
 		return
 	}
+	detail.IsShowFollowButton = true
 	if isSendWx == 1 {
 		var condition string
 		var pars []interface{}

+ 1 - 0
controllers/report.go

@@ -452,6 +452,7 @@ func (this *ReportController) ArticleCategoryList() {
 		resp.IsFollowButton = industryUserFollowMap[industrialManagementId]
 		resp.IsShowFollowButton = true
 	}
+	resp.IsShowFollowButton = true
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "获取成功"