Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
U
utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
library
utils
Commits
261d1671
Verified
Commit
261d1671
authored
Jun 28, 2019
by
Cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add prop for appmessgae
parent
ba5f8382
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
jpush.go
sender/jpush.go
+10
-0
structs.go
sender/structs.go
+5
-0
No files found.
sender/jpush.go
View file @
261d1671
...
@@ -65,15 +65,25 @@ func AppMessageSender(am AppMessage, appKey, masterSecret string, iosProduction
...
@@ -65,15 +65,25 @@ func AppMessageSender(am AppMessage, appKey, masterSecret string, iosProduction
androidNotification
.
AddExtra
(
"jumpPage"
,
am
.
Extra
.
JumpPage
)
androidNotification
.
AddExtra
(
"jumpPage"
,
am
.
Extra
.
JumpPage
)
androidNotification
.
AddExtra
(
"jumpUrl"
,
am
.
Extra
.
JumpUrl
)
androidNotification
.
AddExtra
(
"jumpUrl"
,
am
.
Extra
.
JumpUrl
)
androidNotification
.
AddExtra
(
"jumpTag"
,
am
.
Extra
.
JumpTag
)
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
(
"channelId"
,
am
.
Extra
.
ChannelId
)
androidNotification
.
AddExtra
(
"channelGroupId"
,
am
.
Extra
.
ChannelGroupId
)
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
(
"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
)
iosNotification
.
AddExtra
(
"jumpTag"
,
am
.
Extra
.
JumpTag
)
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
(
"channelId"
,
am
.
Extra
.
ChannelId
)
iosNotification
.
AddExtra
(
"channelGroupId"
,
am
.
Extra
.
ChannelGroupId
)
iosNotification
.
AddExtra
(
"channelGroupId"
,
am
.
Extra
.
ChannelGroupId
)
iosNotification
.
AddExtra
(
"projectId"
,
am
.
Extra
.
ProjectId
)
iosNotification
.
AddExtra
(
"productId"
,
am
.
Extra
.
ProductId
)
androidNotification
.
AddExtra
(
"unReadCount"
,
am
.
Extra
.
UnReadCount
)
androidNotification
.
AddExtra
(
"unReadCount"
,
am
.
Extra
.
UnReadCount
)
iosNotification
.
AddExtra
(
"unReadCount"
,
am
.
Extra
.
UnReadCount
)
iosNotification
.
AddExtra
(
"unReadCount"
,
am
.
Extra
.
UnReadCount
)
...
...
sender/structs.go
View file @
261d1671
...
@@ -384,9 +384,14 @@ type AppMessage struct {
...
@@ -384,9 +384,14 @@ type AppMessage struct {
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"`
JumpTag
string
`json:"jumpTag"`
JumpTag
string
`json:"jumpTag"`
JumpText
string
`json:"jumpText"`
ShareId
string
`json:"shareId" bson:"shareId"`
ChannelId
string
`json:"channelId"`
ChannelId
string
`json:"channelId"`
ChannelGroupId
string
`json:"channelGroupId"`
ChannelGroupId
string
`json:"channelGroupId"`
ProjectId
string
`json:"projectId" bson:"projectId"`
ProductId
string
`json:"productId" bson:"productId"`
}
`json:"extra"`
}
`json:"extra"`
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment