联通接口返回不是个json,增加log点观察
parent
f45937d37f
commit
a6a9c1926a
|
|
@ -116,7 +116,14 @@ public class AICCHelper {
|
|||
log.info("apiUploadCallData: {}", resp);
|
||||
TypeReference<AICCCallRespWrapper<AICCCallRespTask>> type = new TypeReference<AICCCallRespWrapper<AICCCallRespTask>>() {
|
||||
};
|
||||
AICCCallRespWrapper<AICCCallRespTask> AICCCallRespWrapper = JSON.parseObject(resp, type);
|
||||
AICCCallRespWrapper<AICCCallRespTask> AICCCallRespWrapper = null;
|
||||
try {
|
||||
AICCCallRespWrapper = JSON.parseObject(resp, type);
|
||||
} catch (Exception ex) {
|
||||
log.error("apiUploadCallData: {}", resp);
|
||||
log.error("error: ", ex);
|
||||
throw ex;
|
||||
}
|
||||
if (AICCCallRespWrapper == null || !AICCCallRespWrapper.isSuccess()) {
|
||||
initToken();
|
||||
headers.put("X-Access-Token", getToken());
|
||||
|
|
|
|||
Loading…
Reference in New Issue