浏览代码

修改环境

smallqiang 6 年之前
父节点
当前提交
c33aafe9a0
共有 3 个文件被更改,包括 3 次插入20 次删除
  1. 0 4
      assets/scripts/game/Game.js
  2. 1 14
      assets/scripts/game/GameShop.js
  3. 2 2
      assets/scripts/utils/Global.js

+ 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,