✏️ 尝试解决win下路径异常

This commit is contained in:
fumiama
2021-10-24 18:13:12 +08:00
parent 3a5e391191
commit a3685e2e83
8 changed files with 49 additions and 22 deletions

View File

@@ -17,8 +17,7 @@ import (
"github.com/FloatTech/ZeroBot-Plugin/utils/file"
)
var botpath, _ = os.Getwd()
var cachedir = botpath + "/data/hs/"
var cachedir = file.BOT_PATH + "/data/hs/"
var header = req.Header{
"user-agent": `Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Mobile Safari/537.36`,