Authored by 张帅

增加订单信息验证

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