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
3d1c0145
Verified
Commit
3d1c0145
authored
May 10, 2019
by
Cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add subtitle for ios
parent
24da18ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
go.mod
go.mod
+1
-1
go.sum
go.sum
+2
-2
jpush.go
sender/jpush.go
+7
-0
No files found.
go.mod
View file @
3d1c0145
...
@@ -4,5 +4,5 @@ require (
...
@@ -4,5 +4,5 @@ require (
github.com/heycayc/chkcki v0.0.0-20180425093509-ad62647adf04
github.com/heycayc/chkcki v0.0.0-20180425093509-ad62647adf04
github.com/sirupsen/logrus v1.3.0
github.com/sirupsen/logrus v1.3.0
github.com/valyala/fasthttp v1.0.0
github.com/valyala/fasthttp v1.0.0
gitlab.qingclass.cn/library/jpush v0.0.
2
gitlab.qingclass.cn/library/jpush v0.0.
3
)
)
go.sum
View file @
3d1c0145
...
@@ -10,8 +10,8 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
...
@@ -10,8 +10,8 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.0.0/go.mod h1:4vX61m6KN+xDduDNwXrhIAVZaZaZiQ1luJk8LWSxF3s=
github.com/valyala/fasthttp v1.0.0/go.mod h1:4vX61m6KN+xDduDNwXrhIAVZaZaZiQ1luJk8LWSxF3s=
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
gitlab.qingclass.cn/library/jpush v0.0.
2 h1:GzRWzf/L38wvIxSyWniWwGTse7CrVh6lofa/ZBlGNks
=
gitlab.qingclass.cn/library/jpush v0.0.
3 h1:wMeADXoapAWWjjHUCqxMHVRPUakIa9e3A+6MGHJtOAc
=
gitlab.qingclass.cn/library/jpush v0.0.
2
/go.mod h1:h4wvcwtBQSlZKJhpE2FwcXFLIZREfB7fBNYJSCWdGhE=
gitlab.qingclass.cn/library/jpush v0.0.
3
/go.mod h1:h4wvcwtBQSlZKJhpE2FwcXFLIZREfB7fBNYJSCWdGhE=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/net v0.0.0-20180911220305-26e67e76b6c3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180911220305-26e67e76b6c3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
sender/jpush.go
View file @
3d1c0145
...
@@ -35,6 +35,13 @@ func AppMessageSender(am AppMessage, appKey, masterSecret string, iosProduction
...
@@ -35,6 +35,13 @@ func AppMessageSender(am AppMessage, appKey, masterSecret string, iosProduction
androidNotification
.
Title
=
am
.
Title
androidNotification
.
Title
=
am
.
Title
iosNotification
:=
push
.
NewIosNotification
(
am
.
Title
)
iosNotification
:=
push
.
NewIosNotification
(
am
.
Title
)
alert
:=
make
(
map
[
string
]
string
)
alert
[
"title"
]
=
am
.
Title
alert
[
"subtitle"
]
=
am
.
SubTitle
iosNotification
.
Alert
=
alert
iosNotification
.
Badge
=
"+1"
iosNotification
.
Badge
=
"+1"
notification
.
Android
=
androidNotification
notification
.
Android
=
androidNotification
...
...
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