tuoling805 hai 1 ano
pai
achega
295a7c2271
Modificáronse 1 ficheiros con 7 adicións e 3 borrados
  1. 7 3
      services/index_queue.go

+ 7 - 3
services/index_queue.go

@@ -28,10 +28,14 @@ func IndexHandle(filePath string) {
 	//if err != nil {
 	//	go alarm_msg.SendAlarmMsg(utils.APPNAME+" 指标数据未生成检测失败:"+err.Error()+";file:"+filePath, 3)
 	//}
-	filePath = strings.Replace(filePath,`"`,``,-1)
-	fmt.Println("开始刷新文件:",filePath)
+	filePath = strings.Replace(filePath, `"`, ``, -1)
+	fmt.Println("开始刷新文件:", filePath)
 	time.Sleep(1 * time.Second)
-	MysteelChemicalRefresh(filePath)
+	if global.CONFIG.Serve.Frequency != "周度" && !strings.Contains(filePath, "week") {
+		MysteelChemicalRefresh(filePath)
+	} else {
+		MysteelChemicalRefresh(filePath)
+	}
 	//刷新完成后,清除缓存
 	//global.Rc.Delete(filePath)
 }