“mitao”
2026-03-14 89979f6c1764e069273a213023ac187823c1dcbe
bugfix
1个文件已修改
12 ■■■■■ 已修改文件
xp-robotaxi-push-message-boot/src/main/java/com/xiaopeng/pushMessage/utils/AliPushUtil.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-push-message-boot/src/main/java/com/xiaopeng/pushMessage/utils/AliPushUtil.java
@@ -6,6 +6,8 @@
import com.aliyun.sdk.service.push20160801.models.*;
import com.aliyun.sdk.service.push20160801.*;
import com.google.gson.Gson;
import com.xiaopeng.common.core.constant.AliPushTypeConstant;
import com.xiaopeng.common.core.enums.NotificationTypeEnum;
import darabonba.core.client.ClientOverrideConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
@@ -89,7 +91,11 @@
                if(deviceType == 2){
                    channelIds = iosChannelId;
                }
                String content = body;
                if (pushType.equals(AliPushTypeConstant.NOTICE)) {
                    JSONObject jsonObject = JSONObject.parseObject(body);
                    content = jsonObject.getString("content");
                }
                PushRequest pushRequest = PushRequest.builder()
                        .appKey(appKeys)
                        .pushType(pushType)
@@ -97,7 +103,7 @@
                        .target(TARGET)
                        .targetValue(account)
                        .title(title)
                        .body(body)
                        .body(content)
                        .androidExtParameters(body)
                        .androidNotificationChannel(channelIds)
                        .build();
@@ -109,7 +115,7 @@
                            .target(TARGET)
                            .targetValue(account)
                            .title(title)
                            .body(body)
                            .body(content)
                            .iOSExtParameters(body)
                            .androidNotificationChannel(channelIds)
                            .build();