update 电单车协议

This commit is contained in:
Guoqs
2024-09-04 13:48:39 +08:00
parent c0366f7c1b
commit efe869d79b
2 changed files with 8 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
package com.jsowell.netty.handler.electricbicycles;
import com.alibaba.fastjson2.JSON;
import com.jsowell.common.constant.Constants;
import com.jsowell.common.core.domain.ebike.EBikeDataProtocol;
import com.jsowell.common.util.YKCUtils;
import com.jsowell.netty.factory.EBikeOperateFactory;
@@ -40,7 +41,9 @@ public class SettlementUploadHandler extends AbstractEBikeHandler {
saveLastTimeAndCheckChannel(message.getPhysicalId() + "", ctx);
EBikeMessageCmd03.SettlementInfo settlementInfo = message.getSettlementInfo();
log.info("结算消费信息上传:{}", JSON.toJSONString(message));
return null;
// 返回结果
return getResult(dataProtocol, Constants.zeroByteArray);
}
}