|
@@ -121,7 +121,13 @@ cc.Class({
|
|
|
this.game = game
|
|
|
|
|
|
this.loadFriendData().then((data) => { // 好友数据回调
|
|
|
- Global.friendList = this.friends = data.users || [];
|
|
|
+ let _friendList = data.users || [];
|
|
|
+ // 过滤好友申请项
|
|
|
+ _friendList = _friendList.filter(n => {
|
|
|
+ return n.role != 0
|
|
|
+ });
|
|
|
+
|
|
|
+ Global.friendList = this.friends = _friendList;
|
|
|
this.noArtistTipNode.active = false;
|
|
|
this.friendLayout();
|
|
|
}).catch((err) => { // 捕获到报错
|