Forráskód Böngészése

优化数据刷新脚本

longyu 2 éve
szülő
commit
80dc69bb07
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      services/api_tool.go

+ 2 - 3
services/api_tool.go

@@ -3,7 +3,6 @@ package services
 import (
 	"fmt"
 	"github.com/rdlucklib/rdluck_tools/http"
-	"net/url"
 )
 
 const (
@@ -12,8 +11,8 @@ const (
 
 func MysteelChemicalRefresh(filePath string) {
 	var refreshUrl string
-	filePathStr:=url.PathEscape(filePath)
-	refreshUrl = RefreshUrl + "?FilePath=" + filePathStr
+	//filePathStr:=url.PathEscape(filePath)
+	refreshUrl = RefreshUrl + "?FilePath=" + filePath
 	fmt.Println("MysteelChemicalRefresh URL:"+refreshUrl)
 	body, err := http.Get(refreshUrl)
 	if err != nil {