强转int8

This commit is contained in:
wsczx
2022-10-22 22:06:12 +08:00
parent a8d0a39ca0
commit c68374f4f0
2 changed files with 3 additions and 2 deletions

View File

@@ -129,6 +129,7 @@ func UserUpload(w http.ResponseWriter, r *http.Request) {
io.Copy(newFile, file)
if err = UploadUser(newFile.Name()); err != nil {
RespError(w, RespInternalErr, err)
os.Remove(base.Cfg.FilesPath + header.Filename)
return
}
os.Remove(base.Cfg.FilesPath + header.Filename)