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

This commit is contained in:
jhc 2023-12-13 13:30:57 +08:00
parent 2e4d0485ac
commit 0307657120

View File

@ -93,12 +93,12 @@ func (f *File) Upload(req *dci.GetUploadUrlRequest) (res *dci.GetUploadUrlRespon
fmt.Println("====== =========== =================== 1 ===============")
if tea.ToString(getUploadUrlResponse.ResultCode) != "OK" {
return res, errCommon.ReturnError(errors.New(res.ResultMsg), err.Error(), "获取授权访问OSS链接 错误:")
return res, errCommon.ReturnError(errors.New(res.ResultMsg), res.ResultMsg, "获取授权访问OSS链接 错误:")
}
fmt.Println("====== =========== =================== 2 ===============")
if getUploadUrlResponse.Url == nil || getUploadUrlResponse.FileId == nil {
return res, errCommon.ReturnError(errors.New(res.ResultMsg), err.Error(), "获取授权访问OSS链接 错误:")
return res, errCommon.ReturnError(errors.New(res.ResultMsg), res.ResultMsg, "获取授权访问OSS链接 错误:")
}
fmt.Println("====== =========== =================== 3 ===============")