|
@@ -4,6 +4,7 @@ import (
|
|
|
"fmt"
|
|
|
"hongze/mysteel_watch/global"
|
|
|
"hongze/mysteel_watch/utils"
|
|
|
+ "strings"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
@@ -27,6 +28,10 @@ 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)
|
|
|
time.Sleep(1 * time.Second)
|
|
|
MysteelChemicalRefresh(filePath)
|
|
|
+ //刷新完成后,清除缓存
|
|
|
+ //global.Rc.Delete(filePath)
|
|
|
}
|