Commit 087114ae authored by hezhen's avatar hezhen

123

parent f741d43e
...@@ -69,9 +69,9 @@ public class MessagePush implements Serializable { ...@@ -69,9 +69,9 @@ public class MessagePush implements Serializable {
@ApiModelProperty(value = "跳转页面类型:0-进入app;其他见枚举") @ApiModelProperty(value = "跳转页面类型:0-进入app;其他见枚举")
private Integer jumpType; private Integer jumpType;
@Column(name = "url_json")
@ApiModelProperty(value = "指定跳转地址") @ApiModelProperty(value = "指定跳转地址")
private String url; private String urlJson;
@Column(name = "crt_time") @Column(name = "crt_time")
......
...@@ -182,7 +182,17 @@ public class JPushBiz extends BaseBiz<MessagePushMapper, MessagePush> { ...@@ -182,7 +182,17 @@ public class JPushBiz extends BaseBiz<MessagePushMapper, MessagePush> {
if (StringUtils.isNotBlank(orderNo)){ if (StringUtils.isNotBlank(orderNo)){
extras.put("orderNo",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() Notification notification = Notification.newBuilder()
.addPlatformNotification(AndroidNotification.newBuilder() .addPlatformNotification(AndroidNotification.newBuilder()
.setAlert(messagePush.getAlert()) .setAlert(messagePush.getAlert())
......
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