修复业务成功状态码判断的BUG
This commit is contained in:
parent
6569f7d114
commit
f0eb86dd24
@ -314,7 +314,7 @@ func send(apiConfig *ApiRequestConfig, header map[string]string) *ApiResponse {
|
||||
|
||||
// 判断响应状态码是否成功
|
||||
isBusinessCodeSuccess := false
|
||||
for _, itemSuccessCode := range response.RequestConfig.SuccessHttpCodeList {
|
||||
for _, itemSuccessCode := range response.RequestConfig.SuccessCodeList {
|
||||
if itemSuccessCode == response.Code {
|
||||
isBusinessCodeSuccess = true
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user