|
@@ -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();
|
|
|
},
|
|
|
|
|
|
/// 看是否需要添加定时器
|