Browse Source

Merge branch 'ETA_2.3.2'

xiziwen 3 months ago
parent
commit
30a4010ef4
1 changed files with 3 additions and 8 deletions
  1. 3 8
      services/clarksons_watch.go

+ 3 - 8
services/clarksons_watch.go

@@ -10,7 +10,6 @@ import (
 	"io/fs"
 	"os"
 	"path/filepath"
-	"strings"
 	"syscall"
 	"time"
 )
@@ -43,14 +42,10 @@ func clarksonsWatch() {
 			if ok {
 				existModifyTimeStr := existModifyTime.(string)
 				if existModifyTimeStr != modifyTimeStr {
-					if strings.Contains(path, "克拉克森") {
-						err = Clarksons(path)
-					}
-				}
-			} else {
-				if strings.Contains(path, "克拉克森") {
 					err = Clarksons(path)
 				}
+			} else {
+				err = Clarksons(path)
 			}
 			cacheClient.Delete(path)
 			cacheClient.Set(path, modifyTimeStr, 24*time.Hour)
@@ -66,7 +61,7 @@ func Clarksons(path string) (err error) {
 			utils.FileLog.Info(fmt.Sprintf("Clarksons, Err: %s", err))
 		}
 	}()
-	path = "/Users/xi/Desktop/SIN_Timeseries_20241217022653.xlsx"
+	//path = "/Users/xi/Desktop/SIN_Timeseries_20241129063320.xlsx"
 
 	var xlFile *xlsx.File
 	exist, err := PathExists(path)