推送bug
This commit is contained in:
@@ -164,6 +164,9 @@ document.addEventListener("plusready", function() {
|
||||
} else if (payload.type == "2") {
|
||||
plus.nativeUI.confirm(content, function(e){
|
||||
if (e.index==0) {
|
||||
if (payload.url.startWith("http")) {
|
||||
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
||||
} else {
|
||||
var url = payload.url;
|
||||
var sindex = url.indexOf('?') == -1 ? url.length : url.indexOf('?');
|
||||
var openUrl = url.substring(0, sindex);
|
||||
@@ -179,6 +182,8 @@ document.addEventListener("plusready", function() {
|
||||
}
|
||||
}
|
||||
clicked(openUrl,true,false,{},jsonData)
|
||||
}
|
||||
|
||||
}
|
||||
}, title, ["查看","忽略"] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user