添加用户缓存及更新,添加配置文件增删改查接口,添加文件功能.添加配置文件添加请求

This commit is contained in:
junleea 2025-01-03 17:48:49 +08:00
parent 5a3f899772
commit d618cf0332
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")
return err
}
_, err = os.Stat(file)
if err != nil {
_, fileErr := os.Stat(file)
if fileErr != nil {
//创建文件
f, err2 := os.Create(file)
if err2 != nil {