Browse Source

通知数读取bug

luyanan 6 years ago
parent
commit
8a41e026e2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/public/genCom.js

+ 2 - 2
js/public/genCom.js

@ -234,7 +234,7 @@ function unReadedCount(id){//查询指定用户的未读消息数量
234 234
		data:{"id":id},
235 235
		success:function(data){
236 236
			console.log(data)
237
			if(data.success){
237
			if(data.success && data.data){
238 238
				if(data.data!=0){
239 239
					$(".mymessage").find(".badge").text(data.data);
240 240
				}else{
@ -253,7 +253,7 @@ function unInformCount(id){//查询指定用户的未读通知数量
253 253
		data:{"id":id},
254 254
		success:function(data){
255 255
			console.log(data)
256
			if(data.success){
256
			if(data.success && data.data){
257 257
				if(data.data.unRead!=0){
258 258
					$(".myinform").find(".badge").text(data.data.unRead);
259 259
				}else{