修改
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
jhc 2023-12-13 13:18:21 +08:00
parent 8011895c88
commit 6ba25481df

View File

@ -100,7 +100,7 @@ func (f *File) Upload(req *dci.GetUploadUrlRequest) (res *dci.GetUploadUrlRespon
code, result := utils.PutFromFileUrlWithStream(tea.ToString(res.Url), fileName, req.FileName) code, result := utils.PutFromFileUrlWithStream(tea.ToString(res.Url), fileName, req.FileName)
if code != 200 { if code != 200 {
return res, errCommon.ReturnError(err, result, "上传文件 错误:") return res, errCommon.ReturnError(errors.New(result), result, "上传文件 错误:")
} }
return return
} }