Compare commits
No commits in common. "b06f970dd8f17214cb843a7ee48dc2e156b85faa" and "12cc7544dbdfb3d21e47a2fe621cf5fff1665345" have entirely different histories.
b06f970dd8
...
12cc7544db
|
|
@ -95,8 +95,8 @@ func CreateConfigFile(req *proto.AddConfigFileReq, userId int) error {
|
|||
err = fmt.Errorf("file path is invalid")
|
||||
return err
|
||||
}
|
||||
_, fileErr := os.Stat(file)
|
||||
if fileErr != nil {
|
||||
_, err = os.Stat(file)
|
||||
if err != nil {
|
||||
//创建文件
|
||||
f, err2 := os.Create(file)
|
||||
if err2 != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue