jpush add config for ios env mode

This commit is contained in:
Gordon
2022-06-21 11:27:39 +08:00
parent 127ad802ff
commit b242aac7cd
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func (j *JPush) Push(accounts []string, alert, detailContent, operationID string
var me requestBody.Message
me.SetMsgContent(detailContent)
var o requestBody.Options
o.SetApnsProduction(false)
o.SetApnsProduction(config.Config.IOSPush.Production)
var po requestBody.PushObj
po.SetPlatform(&pf)
po.SetAudience(&au)