Browse Source

no message

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

+ 1 - 1
controllers/activity.go

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

+ 1 - 1
controllers/article.go

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

+ 1 - 1
controllers/report.go

@@ -442,7 +442,7 @@ func (this *ReportController) ArticleCategoryList() {
 	if videoSimple.Id > 0 {
 		resp.IndustryVideo = videoSimple
 	}
-	if isSendWx == 0 {
+	if isSendWx == 1 {
 		industryUserFollowMap, err := services.GetIndustryUserFollowMap(user)
 		if err != nil {
 			br.Msg = "获取信息失败"