作者 朱兆平

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

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