diff --git a/push-service/src/main/java/com/xuqm/push/service/provider/XiaomiPushProvider.java b/push-service/src/main/java/com/xuqm/push/service/provider/XiaomiPushProvider.java index 53db253..5d8f7b3 100644 --- a/push-service/src/main/java/com/xuqm/push/service/provider/XiaomiPushProvider.java +++ b/push-service/src/main/java/com/xuqm/push/service/provider/XiaomiPushProvider.java @@ -75,7 +75,8 @@ public class XiaomiPushProvider implements PushProvider { Integer notifyType = options != null ? options.notifyType() : null; form.append("¬ify_type=").append(notifyType == null ? 1 : Math.max(notifyType, 0)); if (!channelId.isBlank()) { - form.append("&channel_id=").append(URLEncoder.encode(channelId, StandardCharsets.UTF_8)); + // HyperOS V3 API requires extra.channel_id (not channel_id) + form.append("&extra.channel_id=").append(URLEncoder.encode(channelId, StandardCharsets.UTF_8)); } log.info("Xiaomi push request: pkg={} channelId={} notifyType={} tokenPrefix={}", packageName, channelId.isBlank() ? "(none)" : channelId,