From b0acb9cde8aa671444855784074afd9c9c9456e1 Mon Sep 17 00:00:00 2001 From: RBeyond <1175794006@qq.com> Date: Wed, 25 Oct 2023 17:25:28 +0800 Subject: [PATCH] =?UTF-8?q?apns=5Fproduction=20APNs=20=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 该字段仅对 iOS 的 Notification 有效,如果不指定则为推送生产环境。注意:JPush 服务端 SDK 默认设置为推送 “开发环境”。 true:表示推送生产环境。 false:表示推送开发环境。 --- options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.go b/options.go index f78cad7..4eebce6 100644 --- a/options.go +++ b/options.go @@ -4,7 +4,7 @@ type Options struct { SendNo int `json:"sendno,omitempty"` //推送序号 TimeToLive int `json:"time_to_live,omitempty"` //离线消息保留时长(秒) OverrideMsgId int `json:"override_msg_id,omitempty"` //要覆盖的消息 ID - ApnsProduction bool `json:"apns_production,omitempty"` //APNs 是否生产环境 + ApnsProduction bool `json:"apns_production"` //APNs 是否生产环境 ApnsCollapseId string `json:"apns_collapse_id,omitempty"` //更新 iOS 通知的标识符 BigPushDuration int `json:"big_push_duration,omitempty"` //定速推送时长(分钟) ThirdPartyChannel map[string]ThirdPartyOptions `json:"third_party_channel,omitempty"` //推送请求下发通道