xingzai пре 3 година
родитељ
комит
cec11d2968
3 измењених фајлова са 4 додато и 3 уклоњено
  1. 1 1
      services/tactics.go
  2. 2 1
      services/task.go
  3. 1 1
      utils/config.go

+ 1 - 1
services/tactics.go

@@ -312,7 +312,7 @@ func SyncTacticsListAddreport() (err error) {
 	}
 
 	fmt.Println("list len:", len(list))
-	summaryCategoryIds := "28,32,45,50,57,62,72,74,79,84,86,88,90,93,95,96,98" //纪要库的文章类型categoty_id
+	summaryCategoryIds := "28,32,45,50,57,62,72,74,79,84,86,88,90,93,95,96" //纪要库的文章类型categoty_id
 	listSummary := strings.Split(summaryCategoryIds, ",")
 	noSummaryArticleIds := "3454,3456,3457,3459,2449,2450,2453,2454,2459,2530,2583,2663,2670,2699,2715,2732,2748,2759,2399,2356,2870,3173,2978,2826,3470" //非纪要库类型的文章ID
 	listNoSummaryArticleIds := strings.Split(noSummaryArticleIds, ",")

+ 2 - 1
services/task.go

@@ -43,7 +43,8 @@ func Task() {
 	//syncTacticsListAddreport := toolbox.NewTask("syncTacticsListAddreport", "0 42 09 * * *", SyncTacticsListAddreport)
 	//toolbox.AddTask("syncTacticsListAddreport", syncTacticsListAddreport)
 	//toolbox.StartTask()
-
+	//AddAllArticle()
+	//SyncTacticsListToEs()
 	fmt.Println("end")
 }
 

+ 1 - 1
utils/config.go

@@ -90,7 +90,7 @@ func init() {
 		WxPublicAppId = "wx9b5d7291e581233a"
 		WxPublicAppSecret = "f4d52e34021eee262dce9682b31f8861"
 		WxPublicId = "gh_5dc508325c6f"
-		IndexName = "test_article"
+		IndexName = "cygx_article_v1"
 	}
 }