This commit is contained in:
YAS\29473
2025-05-22 16:54:20 +08:00
parent 66dd65d84f
commit 4064a17c93
3 changed files with 8 additions and 4 deletions

View File

@@ -47,7 +47,6 @@ public class RemoteStartChargingRequestHandler extends AbstractYkcHandler {
@Override @Override
public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, ChannelHandlerContext channel) { public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, ChannelHandlerContext channel) {
// log.info("[===远程启动充电命令回复===] param:{}, channel:{}", JSON.toJSONString(ykcDataProtocol), channel.toString()); // log.info("[===远程启动充电命令回复===] param:{}, channel:{}", JSON.toJSONString(ykcDataProtocol), channel.toString());
// 消息体 // 消息体
byte[] msgBody = ykcDataProtocol.getMsgBody(); byte[] msgBody = ykcDataProtocol.getMsgBody();

View File

@@ -629,9 +629,11 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
orderInfo.setChargeStartTime(new Date()); orderInfo.setChargeStartTime(new Date());
} }
updateOrderBasicInfo(orderInfo); updateOrderBasicInfo(orderInfo);
// 判断是否要向小程序发送通知
// 发送小程序通知 if (StringUtils.isNotEmpty(orderInfo.getMemberId())){
wxAppletRemoteService.startChargingSendMsg(orderInfo); // 发送小程序通知
wxAppletRemoteService.startChargingSendMsg(orderInfo);
}
} }
/** /**

View File

@@ -166,7 +166,10 @@ public class NotificationService {
try { try {
// 根据平台类型获取Service // 根据平台类型获取Service
ThirdPartyPlatformService platformService = ThirdPartyPlatformFactory.getInvokeStrategy(secretInfoVO.getPlatformType()); ThirdPartyPlatformService platformService = ThirdPartyPlatformFactory.getInvokeStrategy(secretInfoVO.getPlatformType());
//充电订单信息推送
platformService.notificationChargeOrderInfo(orderCode, secretInfoVO); platformService.notificationChargeOrderInfo(orderCode, secretInfoVO);
//订单信息推送
platformService.notificationChargeOrderInfo(orderCode);
} catch (Exception e) { } catch (Exception e) {
logger.error("充电订单信息推送error", e); logger.error("充电订单信息推送error", e);
} }