|
@@ -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)
|
|
|
}
|