|
|
@@ -183,12 +183,6 @@ public class InstOnlineActiveMananger extends AbstractCallBackManager { |
|
|
|
if (cardDetails == null) { |
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("当前卡不在库存中"); |
|
|
|
} |
|
|
|
// 卡签版本校验 |
|
|
|
DeviceVersion cardVersion = DeviceVersion.getVersion(vo.getCardVersion()); |
|
|
|
DeviceVersion obuVersion = DeviceVersion.getVersion(vo.getObuVersion()); |
|
|
|
if (cardVersion != obuVersion) { |
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("卡和OBU版本不一致"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (vo.isValidObu()) { |
|
|
|
if (!hasText(vo.getObuId()) || vo.getObuId().length() != 16) { |
|
|
@@ -227,12 +221,6 @@ public class InstOnlineActiveMananger extends AbstractCallBackManager { |
|
|
|
if (obuDetails == null) { |
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("当前签不在库存中"); |
|
|
|
} |
|
|
|
// 卡签版本校验 |
|
|
|
DeviceVersion cardVersion = DeviceVersion.getVersion(vo.getCardVersion()); |
|
|
|
DeviceVersion obuVersion = DeviceVersion.getVersion(vo.getObuVersion()); |
|
|
|
if (cardVersion != obuVersion) { |
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("卡和OBU版本不一致"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|