Compare commits

..

2 Commits

Author SHA1 Message Date
李一帆 a6a9c1926a 联通接口返回不是个json,增加log点观察 2025-08-04 15:33:08 +08:00
李一帆 f45937d37f 配合演示调整造数据 2025-08-04 15:32:46 +08:00
2 changed files with 14 additions and 4 deletions

View File

@ -51,17 +51,20 @@ public class AutoCallTaskService2 {
public void generateFakeCall() {
QXWarning warn = qxWarningMapper.selectOne(
new QueryWrapper<QXWarning>()
.like("CNNM", "洪湖")
.orderByDesc("WARNID")
.last("limit 1")
);
warn.setCtnm("恩施州");
warn.setCnnm("咸丰 ");
// warn.setCtnm("恩施州");
// warn.setCnnm("咸丰 ");
warn.setCtnm("荆州市");
warn.setCnnm("洪湖 ");
List<AutoCallTask> taskList = newTask(warn);
AutoCallTask task = taskList.get(0);
task.setStatus(0);
task.setCreateTm(new Date());
task.setWarnCnnm("咸丰 ");
task.setWarnCnnm("洪湖 ");
taskMapper.insert(task);
generatePerson(task);
}

View File

@ -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());