Ver código fonte

fix:涌益download

zqbao 7 meses atrás
pai
commit
60cfd6aadf
2 arquivos alterados com 5 adições e 4 exclusões
  1. 1 1
      services/base_from_yongyi.go
  2. 4 3
      services/task.go

+ 1 - 1
services/base_from_yongyi.go

@@ -238,7 +238,7 @@ func YongyiDownloadWeekyly(cont context.Context) (err error) {
 			dataFileExsit = true
 		}
 	}
-	filePath = fmt.Sprintf("%s-%s%s", utils.YongyiReadFilePath, startDate, endDate, "周度图表版图.xlsx")
+	filePath = fmt.Sprintf("%s-%s%s", startDate, endDate, "周度图表版图.xlsx")
 	filePath = filepath.Join(utils.YongyiReadFilePath, filePath)
 	fmt.Println("YongyiDownloadWeekyly: " + filePath)
 	_, e = os.Stat(filePath)

+ 4 - 3
services/task.go

@@ -4,15 +4,16 @@ import (
 	ccfService "eta/eta_data_analysis/services/base_from_ccf"
 	"eta/eta_data_analysis/utils"
 	"fmt"
-	"github.com/beego/beego/v2/task"
-	"github.com/patrickmn/go-cache"
-	"github.com/robfig/cron/v3"
 	"io/fs"
 	"os"
 	"path/filepath"
 	"strings"
 	"syscall"
 	"time"
+
+	"github.com/beego/beego/v2/task"
+	"github.com/patrickmn/go-cache"
+	"github.com/robfig/cron/v3"
 )
 
 func Task() {