diff --git a/jsowell-netty/src/main/java/com/jsowell/netty/handler/ConfirmStartChargingRequestHandler.java b/jsowell-netty/src/main/java/com/jsowell/netty/handler/ConfirmStartChargingRequestHandler.java index 29df41a74..d684de61a 100644 --- a/jsowell-netty/src/main/java/com/jsowell/netty/handler/ConfirmStartChargingRequestHandler.java +++ b/jsowell-netty/src/main/java/com/jsowell/netty/handler/ConfirmStartChargingRequestHandler.java @@ -18,9 +18,6 @@ import com.jsowell.pile.domain.MemberPlateNumberRelation; import com.jsowell.pile.domain.PileAuthCard; import com.jsowell.pile.dto.GenerateOrderDTO; import com.jsowell.pile.service.*; -import com.jsowell.pile.vo.CarVinInfoVO; -import com.jsowell.pile.vo.uniapp.MemberVO; -import com.jsowell.pile.vo.uniapp.PersonalPileInfoVO; import com.jsowell.wxpay.dto.WechatSendMsgDTO; import com.jsowell.wxpay.service.WxAppletRemoteService; import io.netty.channel.Channel; @@ -28,7 +25,6 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; -import java.util.List; import java.util.Map; /** @@ -170,13 +166,13 @@ public class ConfirmStartChargingRequestHandler extends AbstractHandler{ } } } catch (BusinessException e){ - transactionCode = "00000000000000000000000000000000"; + transactionCode = Constants.ILLEGAL_TRANSACTION_CODE; accountBalanceByteArr = BytesUtil.checkLengthAndBehindAppendZero(accountBalanceByteArr, 8); authenticationFlagByteArr = Constants.zeroByteArray; log.error("刷卡启动充电鉴权 error:{}, {}", e.getCode(), e.getMessage()); }catch (Exception e){ - transactionCode = "00000000000000000000000000000000"; + transactionCode = Constants.ILLEGAL_TRANSACTION_CODE; accountBalanceByteArr = BytesUtil.checkLengthAndBehindAppendZero(accountBalanceByteArr, 8); authenticationFlagByteArr = Constants.zeroByteArray; @@ -224,13 +220,13 @@ public class ConfirmStartChargingRequestHandler extends AbstractHandler{ } } }catch (BusinessException e){ - transactionCode = "00000000000000000000000000000000"; + transactionCode = Constants.ILLEGAL_TRANSACTION_CODE; accountBalanceByteArr = BytesUtil.checkLengthAndBehindAppendZero(accountBalanceByteArr, 8); authenticationFlagByteArr = Constants.zeroByteArray; log.error("VIN码启动充电鉴权 error:{}, {}", e.getCode(), e.getMessage()); }catch (Exception e) { - transactionCode = "00000000000000000000000000000000"; + transactionCode = Constants.ILLEGAL_TRANSACTION_CODE; accountBalanceByteArr = BytesUtil.checkLengthAndBehindAppendZero(accountBalanceByteArr, 8); authenticationFlagByteArr = Constants.zeroByteArray;