fix
This commit is contained in:
parent
f1ee00d841
commit
5c3a3fb0d2
@ -131,7 +131,9 @@ func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}, se
|
||||
return decryptedData, nil
|
||||
}
|
||||
|
||||
logx.Errorf("【西部数据请求】请求失败,状态码: %d", httpResp.StatusCode)
|
||||
// 读取错误响应体
|
||||
bodyBytes, _ := io.ReadAll(httpResp.Body)
|
||||
logx.Errorf("【西部数据请求】请求失败,状态码: %d, 响应: %s", httpResp.StatusCode, string(bodyBytes))
|
||||
return nil, errs.ErrSystem
|
||||
}
|
||||
|
||||
@ -211,6 +213,8 @@ func (w *WestDexService) CallAPISecond(code string, reqData map[string]interface
|
||||
return westDexResp.Data, nil
|
||||
}
|
||||
|
||||
logx.Errorf("【西部数据请求】请求失败,状态码: %d", httpResp.StatusCode)
|
||||
// 读取错误响应体
|
||||
bodyBytes, _ := io.ReadAll(httpResp.Body)
|
||||
logx.Errorf("【西部数据请求】请求失败,状态码: %d, 响应: %s", httpResp.StatusCode, string(bodyBytes))
|
||||
return nil, errs.ErrSystem
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user