Browse Source

no message

xingzai 1 year ago
parent
commit
f9fa74eefb
2 changed files with 6 additions and 6 deletions
  1. 4 4
      controllers/activity.go
  2. 2 2
      services/task.go

+ 4 - 4
controllers/activity.go

@@ -2353,10 +2353,10 @@ func (this *ActivityCoAntroller) LabelTypeListV5() {
 		}
 		item.Resource = 1
 		item.ActivityId = v.ActivityId
-		if v.ActivityTypeId == 3 {
-			item.IsExternalLabel = v.IsExternalLabel
-			item.IsResearchPoints = v.IsResearchPoints
-		}
+
+		item.IsExternalLabel = v.IsExternalLabel
+		item.IsResearchPoints = v.IsResearchPoints
+
 		mapActivity[v.ActivityTypeId] = append(mapActivity[v.ActivityTypeId], item)
 		mapkeyWord[fmt.Sprint(v.ActivityTypeId, "-", item.KeyWord)] = item.KeyWord
 	}

+ 2 - 2
services/task.go

@@ -126,8 +126,8 @@ func Task() {
 		task.AddTask("getArticleListByApi", getArticleListByApi)
 	}
 
-	go UserLabelLogReduce() // 处理用户标签的队列消息
-	//go YanXuanActivityPointsBillReduce() // 处理研选活动扣点
+	go UserLabelLogReduce()              // 处理用户标签的队列消息
+	go YanXuanActivityPointsBillReduce() // 处理研选活动扣点
 	//GetCygxActivityAttendanceDetail()
 	//CreateIndexNameArticleHistory()
 	//AddAllArticleHistory()