Compare commits

..

No commits in common. "b06f970dd8f17214cb843a7ee48dc2e156b85faa" and "12cc7544dbdfb3d21e47a2fe621cf5fff1665345" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

@ -95,8 +95,8 @@ func CreateConfigFile(req *proto.AddConfigFileReq, userId int) error {
err = fmt.Errorf("file path is invalid") err = fmt.Errorf("file path is invalid")
return err return err
} }
_, fileErr := os.Stat(file) _, err = os.Stat(file)
if fileErr != nil { if err != nil {
//创建文件 //创建文件
f, err2 := os.Create(file) f, err2 := os.Create(file)
if err2 != nil { if err2 != nil {