瀏覽代碼

no message

xingzai 2 年之前
父節點
當前提交
e666d0e2f0
共有 3 個文件被更改,包括 3 次插入6 次删除
  1. 1 2
      controllers/activity.go
  2. 1 2
      controllers/article.go
  3. 1 2
      controllers/report.go

+ 1 - 2
controllers/activity.go

@@ -1063,7 +1063,7 @@ func (this *ActivityCoAntroller) Detail() {
 		}
 		activityInfo.SignupType = mapActivitySignup[activityId]
 		//判断是不是通过微信模版推送消息进来的
-		if isSendWx == 1 && len(industrialList) > 0 {
+		if isSendWx == 0 && len(industrialList) > 0 {
 			industryUserFollowMap, err := services.GetIndustryUserFollowMap(user)
 			if err != nil {
 				br.Msg = "获取信息失败"
@@ -1077,7 +1077,6 @@ func (this *ActivityCoAntroller) Detail() {
 			}
 			activityInfo.IsShowFollowButton = true
 		}
-		activityInfo.IsShowFollowButton = true
 		if activityInfo.ReportLink != "" {
 			artList, err := services.GetActivityReportLinkToArticleList(activityInfo)
 			if err != nil && err.Error() != utils.ErrNoRow() {

+ 1 - 2
controllers/article.go

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

+ 1 - 2
controllers/report.go

@@ -442,7 +442,7 @@ func (this *ReportController) ArticleCategoryList() {
 	if videoSimple.Id > 0 {
 		resp.IndustryVideo = videoSimple
 	}
-	if isSendWx == 1 {
+	if isSendWx == 0 {
 		industryUserFollowMap, err := services.GetIndustryUserFollowMap(user)
 		if err != nil {
 			br.Msg = "获取信息失败"
@@ -452,7 +452,6 @@ func (this *ReportController) ArticleCategoryList() {
 		resp.IsFollowButton = industryUserFollowMap[industrialManagementId]
 		resp.IsShowFollowButton = true
 	}
-	resp.IsShowFollowButton = true
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "获取成功"