smallqiang 6 年 前
コミット
c33aafe9a0

+ 0 - 4
assets/scripts/game/Game.js

@@ -223,10 +223,6 @@ cc.Class({
                     return;
                 }
 
-                if (TapTapTool.compare(GameGlobal._buyStarGold, GameGlobal.userData.goldObj)) {
-                    GameGlobal._redTypes.push(GameRedDot.star);
-                }
-
                 //// 下面这段代码只是去重,不要重复的更新
                 let isContain = false;
                 for (let i = 0; i < data.type.length; ++ i) {

+ 1 - 14
assets/scripts/game/GameShop.js

@@ -22,7 +22,7 @@ cc.Class({
     },
 
     handelUserShops() {
-        let shops = Global.shops;
+        let shops = GameGlobal.shops;
         this._mtArr = [];
         this._useTimeArr = [];
         this._diamondShopCoinTime = 0;
@@ -63,19 +63,6 @@ cc.Class({
             }
             
         });
-        GameModule.userInfo.shop = this;
-        let shops = GameGlobal.shops;
-        this._mtArr = [];
-        this._useTimeArr = [];
-        this._diamondShopCoinTime = 0;
-        if (shops == undefined || shops.length == 0) {
-            return;
-        }
-        for (let i = 0; i < shops.length; ++ i) {
-            let shop = shops[i];
-            this.handelShop(shop);
-        }
-        this.updateTimeSchedule();
     },
 
     /// 看是否需要添加定时器

+ 2 - 2
assets/scripts/utils/Global.js

@@ -9,8 +9,8 @@ window.GameGlobal = {
     // 建筑管理
     BuildingManager: BuildingManager.instance,
 
-    debug: true,
-    ver: 108, //游戏版本号发版时需要核对
+    debug: false,
+    ver: 100, //游戏版本号发版时需要核对
 
     isCheck: false,