|
@@ -31,10 +31,14 @@ func IndexHandle(filePath string) {
|
|
|
filePath = strings.Replace(filePath, `"`, ``, -1)
|
|
|
fmt.Println("开始刷新文件:", filePath)
|
|
|
time.Sleep(1 * time.Second)
|
|
|
- if global.CONFIG.Serve.Frequency != "周度" && !strings.Contains(filePath, "week") {
|
|
|
+ if global.CONFIG.Serve.SystemType == "custom" {
|
|
|
MysteelChemicalRefresh(filePath)
|
|
|
} else {
|
|
|
- MysteelChemicalRefresh(filePath)
|
|
|
+ if global.CONFIG.Serve.Frequency != "周度" && !strings.Contains(filePath, "week") {
|
|
|
+ MysteelChemicalRefresh(filePath)
|
|
|
+ } else {
|
|
|
+ MysteelChemicalRefresh(filePath)
|
|
|
+ }
|
|
|
}
|
|
|
//刷新完成后,清除缓存
|
|
|
//global.Rc.Delete(filePath)
|