Verified Commit cb09b40d authored by Cui's avatar Cui

fix

parent 261d1671
...@@ -61,6 +61,7 @@ func AppMessageSender(am AppMessage, appKey, masterSecret string, iosProduction ...@@ -61,6 +61,7 @@ func AppMessageSender(am AppMessage, appKey, masterSecret string, iosProduction
iosNotification.AddExtra("messageId", am.Extra.MessageId) iosNotification.AddExtra("messageId", am.Extra.MessageId)
} }
androidNotification.AddExtra("noticeType", am.Extra.NoticeType)
androidNotification.AddExtra("jumpType", am.Extra.JumpType) androidNotification.AddExtra("jumpType", am.Extra.JumpType)
androidNotification.AddExtra("jumpPage", am.Extra.JumpPage) androidNotification.AddExtra("jumpPage", am.Extra.JumpPage)
androidNotification.AddExtra("jumpUrl", am.Extra.JumpUrl) androidNotification.AddExtra("jumpUrl", am.Extra.JumpUrl)
...@@ -73,6 +74,7 @@ func AppMessageSender(am AppMessage, appKey, masterSecret string, iosProduction ...@@ -73,6 +74,7 @@ func AppMessageSender(am AppMessage, appKey, masterSecret string, iosProduction
androidNotification.AddExtra("projectId", am.Extra.ProjectId) androidNotification.AddExtra("projectId", am.Extra.ProjectId)
androidNotification.AddExtra("productId", am.Extra.ProductId) androidNotification.AddExtra("productId", am.Extra.ProductId)
iosNotification.AddExtra("noticeType", am.Extra.NoticeType)
iosNotification.AddExtra("jumpType", am.Extra.JumpType) iosNotification.AddExtra("jumpType", am.Extra.JumpType)
iosNotification.AddExtra("jumpPage", am.Extra.JumpPage) iosNotification.AddExtra("jumpPage", am.Extra.JumpPage)
iosNotification.AddExtra("jumpUrl", am.Extra.JumpUrl) iosNotification.AddExtra("jumpUrl", am.Extra.JumpUrl)
......
...@@ -380,6 +380,8 @@ type AppMessage struct { ...@@ -380,6 +380,8 @@ type AppMessage struct {
UnReadCount int `json:"unReadCount"` UnReadCount int `json:"unReadCount"`
MessageId string `json:"messageId"` MessageId string `json:"messageId"`
NoticeType int `json:"noticeType"`
JumpType string `json:"jumpType"` // enum: [ 'app','web' ], JumpType string `json:"jumpType"` // enum: [ 'app','web' ],
JumpPage string `json:"jumpPage"` // enum: [ 'home', 'found', 'invite','buyCourse ','buyCard','webpage' ], JumpPage string `json:"jumpPage"` // enum: [ 'home', 'found', 'invite','buyCourse ','buyCard','webpage' ],
JumpUrl string `json:"jumpUrl"` JumpUrl string `json:"jumpUrl"`
......
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