Verified Commit 261d1671 authored by Cui's avatar Cui

add prop for appmessgae

parent ba5f8382
......@@ -65,15 +65,25 @@ func AppMessageSender(am AppMessage, appKey, masterSecret string, iosProduction
androidNotification.AddExtra("jumpPage", am.Extra.JumpPage)
androidNotification.AddExtra("jumpUrl", am.Extra.JumpUrl)
androidNotification.AddExtra("jumpTag", am.Extra.JumpTag)
androidNotification.AddExtra("jumpText", am.Extra.JumpText)
androidNotification.AddExtra("ShareId", am.Extra.ShareId)
androidNotification.AddExtra("channelId", am.Extra.ChannelId)
androidNotification.AddExtra("channelGroupId", am.Extra.ChannelGroupId)
androidNotification.AddExtra("projectId", am.Extra.ProjectId)
androidNotification.AddExtra("productId", am.Extra.ProductId)
iosNotification.AddExtra("jumpType", am.Extra.JumpType)
iosNotification.AddExtra("jumpPage", am.Extra.JumpPage)
iosNotification.AddExtra("jumpUrl", am.Extra.JumpUrl)
iosNotification.AddExtra("jumpTag", am.Extra.JumpTag)
iosNotification.AddExtra("jumpText", am.Extra.JumpText)
iosNotification.AddExtra("ShareId", am.Extra.ShareId)
iosNotification.AddExtra("channelId", am.Extra.ChannelId)
iosNotification.AddExtra("channelGroupId", am.Extra.ChannelGroupId)
iosNotification.AddExtra("projectId", am.Extra.ProjectId)
iosNotification.AddExtra("productId", am.Extra.ProductId)
androidNotification.AddExtra("unReadCount", am.Extra.UnReadCount)
iosNotification.AddExtra("unReadCount", am.Extra.UnReadCount)
......
......@@ -384,9 +384,14 @@ type AppMessage struct {
JumpPage string `json:"jumpPage"` // enum: [ 'home', 'found', 'invite','buyCourse ','buyCard','webpage' ],
JumpUrl string `json:"jumpUrl"`
JumpTag string `json:"jumpTag"`
JumpText string `json:"jumpText"`
ShareId string `json:"shareId" bson:"shareId"`
ChannelId string `json:"channelId"`
ChannelGroupId string `json:"channelGroupId"`
ProjectId string `json:"projectId" bson:"projectId"`
ProductId string `json:"productId" bson:"productId"`
} `json:"extra"`
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment