Browse Source

更新配置表内容

sa03 6 years ago
parent
commit
2fccd2d3c2
3 changed files with 8 additions and 1 deletions
  1. 8 1
      assets/scripts/Tab.js
  2. 0 0
      assets/scripts/data/buildingLevel.js
  3. 0 0
      tools/sheet/buildingLevel.json

+ 8 - 1
assets/scripts/Tab.js

@@ -76,7 +76,14 @@ cc.Class({
         GameEvent.on(Notikey.RefreshFriendList, this, () => {
             
             this.loadFriendData().then((data) => {
-                Global.friendList = this.friends = data.users || [];  
+                let _friendList = data.users || [];
+                // 过滤好友申请项
+                _friendList = _friendList.filter(n => {
+                    return n.isApplied != 1
+                });
+                
+                Global.friendList = this.friends = _friendList;  
+
                 this.friendLayout();
             }).catch((err) => {
                 console.log(err); 

File diff suppressed because it is too large
+ 0 - 0
assets/scripts/data/buildingLevel.js


File diff suppressed because it is too large
+ 0 - 0
tools/sheet/buildingLevel.json


Some files were not shown because too many files changed in this diff