提交 df323484 编写于 作者: yujiao's avatar yujiao

JSON.toJSONString方法不能去处理接口类型的object

上级 23f83c11
...@@ -173,7 +173,7 @@ public class AutoCodeController extends AccountBaseController { ...@@ -173,7 +173,7 @@ public class AutoCodeController extends AccountBaseController {
//接入新旭事务一致性 //接入新旭事务一致性
String batchNo = IntactUtils.getUUID(); String batchNo = IntactUtils.getUUID();
intactUtil.sendIntact(batchNo,"getH5AuthCode",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_1,"entity:"+ JSON.toJSONString(entity)+"req:"+ JSON.toJSONString(req)); intactUtil.sendIntact(batchNo,"getH5AuthCode",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_1,"entity:"+ JSON.toJSONString(entity));
// 拼图验证 // 拼图验证
int recordData = authCodeService.validateJigsawCode(req, request); int recordData = authCodeService.validateJigsawCode(req, request);
...@@ -185,7 +185,7 @@ public class AutoCodeController extends AccountBaseController { ...@@ -185,7 +185,7 @@ public class AutoCodeController extends AccountBaseController {
// 记录风控数据(记录是h5端) // 记录风控数据(记录是h5端)
authCodeService.recordRcData(req, request, super.getDeviceInfo("device_ip")); authCodeService.recordRcData(req, request, super.getDeviceInfo("device_ip"));
} }
intactUtil.sendIntact(batchNo,"getH5AuthCode",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_3,"entity:"+ JSON.toJSONString(entity)+"req:"+ JSON.toJSONString(req)); intactUtil.sendIntact(batchNo,"getH5AuthCode",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_3,"entity:"+ JSON.toJSONString(entity));
return PicaResponse.toResponse(); return PicaResponse.toResponse();
...@@ -218,7 +218,7 @@ public class AutoCodeController extends AccountBaseController { ...@@ -218,7 +218,7 @@ public class AutoCodeController extends AccountBaseController {
this.checkMobilePhone(mobilePhone); this.checkMobilePhone(mobilePhone);
//接入新旭事务一致性 //接入新旭事务一致性
String batchNo = IntactUtils.getUUID(); String batchNo = IntactUtils.getUUID();
intactUtil.sendIntact(batchNo,"getAuthCodeWithCaptcha",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_1,"entity:"+ JSON.toJSONString(entity)+"req:"+ JSON.toJSONString(req)); intactUtil.sendIntact(batchNo,"getAuthCodeWithCaptcha",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_1,"entity:"+ JSON.toJSONString(entity));
String authCode = CommonUtil.createValidateCode(); //随机生成验证码 String authCode = CommonUtil.createValidateCode(); //随机生成验证码
String message = "您的验证码是" + authCode + ",在10分钟内有效。如非本人操作,请忽略本短信!"; String message = "您的验证码是" + authCode + ",在10分钟内有效。如非本人操作,请忽略本短信!";
//判断账号是否已经存在 //判断账号是否已经存在
...@@ -235,7 +235,7 @@ public class AutoCodeController extends AccountBaseController { ...@@ -235,7 +235,7 @@ public class AutoCodeController extends AccountBaseController {
// 记录风控数据 // 记录风控数据
authCodeService.recordRcData(req, request, super.getDeviceInfo("device_ip")); authCodeService.recordRcData(req, request, super.getDeviceInfo("device_ip"));
intactUtil.sendIntact(batchNo,"getAuthCodeWithCaptcha",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_3,"entity:"+ JSON.toJSONString(entity)+"req:"+ JSON.toJSONString(req)); intactUtil.sendIntact(batchNo,"getAuthCodeWithCaptcha",com.pica.cloud.foundation.completeness.contract.constants.CommonConstants.INTACT_CONTENT_LOG_STATUS_3,"entity:"+ JSON.toJSONString(entity));
return PicaResponse.toResponse(StringUtils.EMPTY); return PicaResponse.toResponse(StringUtils.EMPTY);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册