Skip to content

Commit

Permalink
fix rapidupload
Browse files Browse the repository at this point in the history
  • Loading branch information
qjfoidnh committed Jun 2, 2023
1 parent 5d7c93d commit 512438b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baidupcs/pcserror/pcserror.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func HandleJSONParse(op string, data io.Reader, info interface{}) (pcsError Erro
}

// 设置出错类型为远程错误
if errInfo.GetRemoteErrMsg() != StrSuccess {
if errInfo.GetRemoteErrCode() != 0 {
errInfo.SetRemoteError()
return errInfo
}
Expand Down
2 changes: 1 addition & 1 deletion baidupcs/pcserror/xpanerrorinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (pane *XPanErrorInfo) GetErrType() ErrType {

// GetRemoteErrCode 获取远端服务器错误代码
func (pane *XPanErrorInfo) GetRemoteErrCode() int {
return pane.ErrNo
return pane.ErrNo + pane.ReturnType - 2
}

// GetRemoteErrMsg 获取远端服务器错误消息
Expand Down

0 comments on commit 512438b

Please sign in to comment.