Explorar el Código

修改Tab栏好友列表过滤条件

sa03 hace 6 años
padre
commit
b95e1944c6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      assets/scripts/Tab.js

+ 1 - 1
assets/scripts/Tab.js

@@ -124,7 +124,7 @@ cc.Class({
             let _friendList = data.users || [];
             // 过滤好友申请项
             _friendList = _friendList.filter(n => {
-                return n.role != 0
+                return n.isApplied != 1
             });
 
             Global.friendList = this.friends = _friendList;