|
@@ -420,10 +420,10 @@ function checkCounts() {
|
|
|
url: '/jymessageCenter/lastNewMessage?t=' + Date.now(),
|
|
|
success: function (r) {
|
|
|
var num = r.count
|
|
|
- var isMsg = window.localStorage.getItem('noMesg')
|
|
|
- if (num !== Number(isMsg)) {
|
|
|
+ // var isMsg = window.localStorage.getItem('noMesg')
|
|
|
+ // if (num !== Number(isMsg)) {
|
|
|
var datas = r.data
|
|
|
- if (!$.isEmptyObject(datas)) {
|
|
|
+ if (num && !$.isEmptyObject(datas)) {
|
|
|
var notify = new Notification(datas.title,{
|
|
|
icon: '../images/t3_new.jpg',
|
|
|
body: datas.content
|
|
@@ -435,7 +435,7 @@ function checkCounts() {
|
|
|
}
|
|
|
}
|
|
|
localStorage.setItem('noMesg', num)
|
|
|
- }
|
|
|
+ // }
|
|
|
},
|
|
|
error: function () {
|
|
|
clearInterval(msgTimer)
|