作者 朱兆平

接收到金二放行指令做日志记录后,转本地验放

... ... @@ -157,8 +157,8 @@ public class MessageRouterX21 implements MessageRouter {
* 为提高抬杆效率
*/
//todo:走错通道的回执指令处理
log.info("走错通道");
CommandClient.Client(info,"G2-未找到通道对应申报信息,或二维码信息不一致");
log.info("[rightChnelCheck]-走错通道");
CommandClient.Client(info,"G2-走错通道,未找到通道对应申报信息,或二维码信息不一致");
record(info,false,"走错通道-[SEQN]:"+info.getSeqno(),null);
}
... ...
... ... @@ -58,7 +58,7 @@ public class MessageRouterX22 implements MessageRouter {
*/
GatherInfo gatherInfo = readCacheWithSeqno(commandInfoX22);
//是金二指令
if (gatherInfo!=null){
if (gatherInfo!=null && gatherInfo.getChnlno().equals(commandInfoX22.getChnlNo())){
/**
* 1. 判断指令是否放行
*/
... ... @@ -71,9 +71,10 @@ public class MessageRouterX22 implements MessageRouter {
/**
* 第二种,结合本地指令进行放行.
*/
record(gatherInfo,true,commandInfoX22.getOpHint(),null);
GatherInfoHandle gatherInfoHandle = new GatherInfoHandle();
gatherInfoHandle.handel(gatherInfo);
return;
}else {
/**
* 是金二指令,但是是未放行指令
... ... @@ -85,7 +86,7 @@ public class MessageRouterX22 implements MessageRouter {
}
}
else{
log.info("[X22-ERROR]:未找到对应的SEQNO:[{}]过卡缓存数据",commandInfoX22.getSeqNo());
log.info("[X22-ERROR]:未找到对应的SEQNO:[{}]及通道的过卡缓存数据,不属于金二验放指令,不进行处理",commandInfoX22.getSeqNo());
}
}
}catch (Exception e){
... ...