Authored by 张帅

增加订单信息验证

@@ -83,7 +83,7 @@ public class NFCServiceImpl implements INFCService { @@ -83,7 +83,7 @@ public class NFCServiceImpl implements INFCService {
83 BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode); 83 BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode);
84 if(buyerOrder == null){ 84 if(buyerOrder == null){
85 logger.info("writeIdentify get order is null"); 85 logger.info("writeIdentify get order is null");
86 - return; 86 + throw new PlatformException("订单信息不存在!", 403);
87 } 87 }
88 logger.info("writeIdentify get order success , order is {}", buyerOrder); 88 logger.info("writeIdentify get order success , order is {}", buyerOrder);
89 try{ 89 try{
@@ -97,7 +97,7 @@ public class NFCServiceImpl implements INFCService { @@ -97,7 +97,7 @@ public class NFCServiceImpl implements INFCService {
97 syncBlockChain(tagId, buyerOrder); 97 syncBlockChain(tagId, buyerOrder);
98 }catch (Exception e){ 98 }catch (Exception e){
99 logger.warn("writeIdentify syncBlockChain error , e is {}", e); 99 logger.warn("writeIdentify syncBlockChain error , e is {}", e);
100 - throw new PlatformException("同步数据到区块链写代理失败", 403); 100 +// throw new PlatformException("同步数据到区块链写代理失败", 403);
101 } 101 }
102 102
103 } 103 }