xuhy
2026-02-27 1145f9afd7be308d832a44d6e20811e5b076007c
xp-robotaxi-push-message-boot/src/main/java/com/xiaopeng/pushMessage/utils/AliPushUtil.java
@@ -29,6 +29,10 @@
    private Long appKey;
    @Value("${ali.push.iosAppKey}")
    private Long iosAppKey;
    @Value("${ali.push.channelId}")
    private String channelId;
    @Value("${ali.push.iosChannelId}")
    private String iosChannelId;
    /**
     * 消息类型  MESSAGE 消息  NOTICE  通知
     */
@@ -84,6 +88,11 @@
                    appKeys = iosAppKey;
                }
                String channelIds = channelId;
                if(deviceType == 2){
                    channelIds = iosChannelId;
                }
                PushRequest pushRequest = PushRequest.builder()
                        .appKey(appKeys)
                        .pushType(PUSH_TYPE)
@@ -92,6 +101,7 @@
                        .targetValue(account)
                        .title(title)
                        .body(body)
                        .androidNotificationChannel(channelIds)
                        .build();
                CompletableFuture<PushResponse> response = client.push(pushRequest);
                PushResponse resp = response.get();