瀏覽代碼

修复BUG

Minho 8 年之前
父節點
當前提交
b5324092e1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      commands/command.go

+ 1 - 0
commands/command.go

@@ -90,6 +90,7 @@ func RegisterLogger(log string) {
 	if _, err := os.Stat(logPath); os.IsNotExist(err) {
 
 		os.MkdirAll(log, 0777)
+		logPath = strings.Replace(logPath,"\\","/","")
 
 		if f, err := os.Create(logPath); err == nil {
 			f.Close()