|
|
@@ -76,12 +76,12 @@ public class ConsumeBusiness {
|
|
|
long startTime = System.currentTimeMillis();
|
|
|
log.warn("[请求交易]-[开始记录有效性验证]-[{}]", JSONUtil.toJsonStr(bo));
|
|
|
AllowConsumeValidationContext ctx = AllowConsumeValidationContext.create(bo);
|
|
|
- R<ErrorInfo> result = commonCheck.consumeValidation(bo, ctx);
|
|
|
- log.info("[请求交易]-[记录有效性验证完成]-[耗时: {} 毫秒]-[记录:{}]", System.currentTimeMillis() - startTime, JSONUtil.toJsonStr(bo));
|
|
|
+ R<ErrorInfo> result = commonCheck.consumeValidation(ctx);
|
|
|
if (R.isError(result)) {
|
|
|
- log.error("[请求交易]-[记录有效性验证失败]-[{}]", result.getData());
|
|
|
+ log.error("[请求交易]-[记录有效性验证失败]-[耗时: {} 毫秒]-[错误:{}]", System.currentTimeMillis() - startTime, result.getData());
|
|
|
return result;
|
|
|
}
|
|
|
+ log.info("[请求交易]-[记录有效性验证完成]-[耗时: {} 毫秒]-[记录:{}]", System.currentTimeMillis() - startTime, JSONUtil.toJsonStr(bo));
|
|
|
|
|
|
RemoteUserAccountVo userAccountVo = ctx.getUserAccountVo();
|
|
|
RemoteCardVo userCardVo = ctx.getUserCardVo();
|
|
|
@@ -122,7 +122,7 @@ public class ConsumeBusiness {
|
|
|
long startTime = System.currentTimeMillis();
|
|
|
// log.warn("[上传交易]-[开始记录有效性验证]-[{}]", JSONUtil.toJsonStr(bo));
|
|
|
AllowConsumeValidationContext ctx = AllowConsumeValidationContext.create(bo);
|
|
|
- R<ErrorInfo> result = commonCheck.consumeValidation(bo, ctx);
|
|
|
+ R<ErrorInfo> result = commonCheck.consumeValidation(ctx);
|
|
|
log.info("[上传交易]-[记录有效性验证完成]-[耗时: {} 毫秒]-[记录:{}]", System.currentTimeMillis() - startTime, JSONUtil.toJsonStr(bo));
|
|
|
if (R.isError(result)) {
|
|
|
log.error("[上传交易]-[记录有效性验证失败]-[{}]", result.getData());
|
|
|
@@ -278,12 +278,6 @@ public class ConsumeBusiness {
|
|
|
@Async
|
|
|
public void postOrderAsync(ConsumptionBo bo, String mac, String xfPwd) {
|
|
|
R<ErrorInfo> result = SpringUtils.getAopProxy(this).postOrder(bo, mac, xfPwd);
|
|
|
- if (R.isSuccess(result)) {
|
|
|
- // 发送消息
|
|
|
- if (ObjectUtil.equals(defaultConfig.getLocationFlag(), DefaultConstants.LOCAL_FLAG)) {
|
|
|
- ThreadUtil.execAsync(() -> baseBusiness.sendCloudConsume(bo));
|
|
|
- }
|
|
|
- }
|
|
|
log.info("[上传交易结果完成]");
|
|
|
}
|
|
|
}
|