|
@@ -66,10 +66,10 @@ $(function(){
|
|
|
afterPageInit();
|
|
|
//发送渠道统计
|
|
|
sendChannelSign();
|
|
|
- //记录推送id
|
|
|
- savePushIdMsg();
|
|
|
}catch(e){}
|
|
|
}
|
|
|
+ //记录推送id
|
|
|
+ savePushIdMsg();
|
|
|
});
|
|
|
var EasyAlert = {
|
|
|
timeout: null,
|
|
@@ -583,7 +583,8 @@ function sendChannelSign(){
|
|
|
|
|
|
function savePushIdMsg(){
|
|
|
var sign = JyObj.getUserToken();
|
|
|
- if(sign != ""){
|
|
|
+ var save = sessionStorage.getItem("savePush")
|
|
|
+ if(sign != ""||save=="1"){
|
|
|
return;
|
|
|
}
|
|
|
try{
|
|
@@ -598,6 +599,7 @@ function savePushIdMsg(){
|
|
|
$.post("/jyapp/free/savePushIdMsg",{"id":id,"phoneType":phoneType,"rid":rid,"oid":oid},function(data){
|
|
|
if(data.success){
|
|
|
clearInterval(interval);
|
|
|
+ sessionStorage.setItem("savePush","1")
|
|
|
}
|
|
|
})
|
|
|
},1000)
|