Commit c73e6d63 authored by hezhen's avatar hezhen

Merge branch 'master' into dev

parents 491fcb7e ef4104ff
......@@ -14,6 +14,7 @@ import cn.jpush.api.push.model.audience.Audience;
import cn.jpush.api.push.model.notification.AndroidNotification;
import cn.jpush.api.push.model.notification.IosNotification;
import cn.jpush.api.push.model.notification.Notification;
import com.alibaba.fastjson.JSONObject;
import com.github.wxiaoqi.security.common.biz.BaseBiz;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.util.process.ResultCode;
......@@ -196,10 +197,10 @@ public class JPushBiz extends BaseBiz<MessagePushMapper, MessagePush> {
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();
if (StringUtils.isNotBlank(messagePush.getUrlJson())){
JSONObject jsonObject=JSONObject.parseObject(urlJson);
url=jsonObject.getString("url");
title=jsonObject.getString("title");
}
extras.put("url",url);
......
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