Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
087114ae
Commit
087114ae
authored
Apr 13, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
f741d43e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
MessagePush.java
.../java/com/xxfc/platform/universal/entity/MessagePush.java
+2
-2
JPushBiz.java
...c/main/java/com/xxfc/platform/universal/biz/JPushBiz.java
+11
-1
No files found.
xx-universal/xx-universal-api/src/main/java/com/xxfc/platform/universal/entity/MessagePush.java
View file @
087114ae
...
...
@@ -69,9 +69,9 @@ public class MessagePush implements Serializable {
@ApiModelProperty
(
value
=
"跳转页面类型:0-进入app;其他见枚举"
)
private
Integer
jumpType
;
@Column
(
name
=
"url_json"
)
@ApiModelProperty
(
value
=
"指定跳转地址"
)
private
String
url
;
private
String
url
Json
;
@Column
(
name
=
"crt_time"
)
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/biz/JPushBiz.java
View file @
087114ae
...
...
@@ -182,7 +182,17 @@ public class JPushBiz extends BaseBiz<MessagePushMapper, MessagePush> {
if
(
StringUtils
.
isNotBlank
(
orderNo
)){
extras
.
put
(
"orderNo"
,
orderNo
);
}
extras
.
put
(
"url"
,
messagePush
.
getUrl
());
String
urlJson
=
messagePush
.
getUrlJson
();
String
url
=
""
;
String
title
=
""
;
if
(
StringUtils
.
isNotBlank
(
messagePush
.
getIntent
())){
JsonObject
jsonObject
=
getJsonObject
(
urlJson
);
url
=
jsonObject
.
get
(
"url"
).
toString
();
title
=
jsonObject
.
get
(
"title"
).
toString
();
}
extras
.
put
(
"url"
,
url
);
extras
.
put
(
"title"
,
title
);
Notification
notification
=
Notification
.
newBuilder
()
.
addPlatformNotification
(
AndroidNotification
.
newBuilder
()
.
setAlert
(
messagePush
.
getAlert
())
...
...
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