This commit is contained in:
ZZ 2021-09-09 14:20:52 +08:00
parent 1c4a354057
commit e2eb7b3003

View File

@ -48,7 +48,7 @@ public class RateModelRequestLogic implements ServiceLogic {
String resultStr = "685E".concat(seq).concat("000A").concat(pileNo)
.concat(String.format("%04X", rateModelId))
.concat(rateModel);
resultStr = resultStr.concat(CRCCalculator.calcCrc(resultStr));
resultStr = resultStr.concat(CRCCalculator.calcCrc(resultStr.substring(4)));
return new ServiceResult(HexUtils.toBytes(resultStr), ServiceResult.OK);
}