修复业务成功状态码判断的BUG

This commit is contained in:
白茶清欢 2023-09-25 19:21:56 +08:00
parent 6569f7d114
commit f0eb86dd24

View File

@ -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