feat: 更换file包

This commit is contained in:
Mmx
2021-09-19 23:14:03 +08:00
parent 052aba8422
commit 80b06250e6
8 changed files with 55 additions and 89 deletions

View File

@@ -3,6 +3,7 @@ package util
import (
"autoLogin/global"
"fmt"
"github.com/Mmx233/tool"
"log"
"os"
"reflect"
@@ -30,7 +31,7 @@ func (*loG) WriteLog(name string, a ...interface{}) {
default:
t = fmt.Sprint(v)
}
err := File.Add(name, fmt.Sprintf(time.Now().Format("2006/01/02 15:04:05 "))+t)
err := tool.File.Add(name, fmt.Sprintf(time.Now().Format("2006/01/02 15:04:05 "))+t, 700)
if err != nil {
log.Println("Log error: ", err)
}