注释掉一些log
This commit is contained in:
@@ -57,7 +57,7 @@ export class FirstGiftPage {
|
||||
items: FirstGiftItem[] = []; //奖励
|
||||
|
||||
constructor(data: FirstGiftDataInDb) {
|
||||
console.log(data)
|
||||
// console.log(data)
|
||||
this.pageIndex = data.pageIndex;
|
||||
this.targetMoney = data.targetMoney;
|
||||
for (let obj of data.rewards) {
|
||||
|
||||
@@ -255,16 +255,16 @@ export class PopUpShopPackage {
|
||||
// 检查这个礼包是否可以推送
|
||||
public checkPackageCanPush(conditionType: POP_UP_SHOP_CONDITION_TYPE) {
|
||||
// 1. 达成条件类型是否符合
|
||||
console.log('######### 3.5.1', this.conditionType, conditionType, this.conditionType != conditionType)
|
||||
// console.log('######### 3.5.1', this.conditionType, conditionType, this.conditionType != conditionType)
|
||||
if(this.conditionType != conditionType) return false;
|
||||
// 2. 判断同类型是否是已经有在持续中的
|
||||
console.log('######### 3.5.2', this.checkPushingItem, this.isPushing);
|
||||
// console.log('######### 3.5.2', this.checkPushingItem, this.isPushing);
|
||||
if(this.checkPushingItem && this.isPushing) return false;
|
||||
// 3. 自然日内推送次数
|
||||
console.log('######### 3.5.3', this.canLvUp, this.pushCnt, this.hasPushCnt, this.pushCnt != -1, this.hasPushCnt >= this.pushCnt)
|
||||
// console.log('######### 3.5.3', this.canLvUp, this.pushCnt, this.hasPushCnt, this.pushCnt != -1, this.hasPushCnt >= this.pushCnt)
|
||||
if(this.canLvUp == 1 && this.pushCnt != -1 && this.hasPushCnt >= this.pushCnt) return false;
|
||||
// 4. 连续无视次数
|
||||
console.log('######### 3.5.4', this.hasPassCnt, this.passCnt, this.passCnt > 0 && this.hasPassCnt >= this.passCnt)
|
||||
// console.log('######### 3.5.4', this.hasPassCnt, this.passCnt, this.passCnt > 0 && this.hasPassCnt >= this.passCnt)
|
||||
if(this.passCnt > 0 && this.hasPassCnt >= this.passCnt) return false;
|
||||
|
||||
return true;
|
||||
@@ -408,18 +408,18 @@ export class PopShopItem {
|
||||
}
|
||||
|
||||
public checkItemCanPush(conditionType: POP_UP_SHOP_CONDITION_TYPE, param: PopUpConditionParamInter) {
|
||||
console.log('##### xyz?1', this.hasBoughtCnt >= this.buyCnt)
|
||||
// console.log('##### xyz?1', this.hasBoughtCnt >= this.buyCnt)
|
||||
if(this.hasBoughtCnt >= this.buyCnt) return false;
|
||||
console.log('##### xyz?2', this.parent.getVipLv(), this.vipLv, this.parent.getVipLv() < this.vipLv)
|
||||
// console.log('##### xyz?2', this.parent.getVipLv(), this.vipLv, this.parent.getVipLv() < this.vipLv)
|
||||
if(this.parent.getVipLv() < this.vipLv || this.parent.getLv() < this.lv) return false;
|
||||
console.log('##### xyz?3', this.parent.getLv(), this.lv, this.parent.getLv() < this.lv)
|
||||
// console.log('##### xyz?3', this.parent.getLv(), this.lv, this.parent.getLv() < this.lv)
|
||||
if(this.parent.getLv() < this.lv) return false;
|
||||
console.log('##### xyz?4', this.checkKeyTime())
|
||||
// console.log('##### xyz?4', this.checkKeyTime())
|
||||
if(!this.checkKeyTime()) return false
|
||||
console.log('##### xyz?5', this.canLvUp, this.hasPushCnt, this.pushCnt, this.pushCnt != -1, this.hasPushCnt >= this.pushCnt)
|
||||
// console.log('##### xyz?5', this.canLvUp, this.hasPushCnt, this.pushCnt, this.pushCnt != -1, this.hasPushCnt >= this.pushCnt)
|
||||
if(this.canLvUp == 0 && this.pushCnt != -1 && this.hasPushCnt >= this.pushCnt) return false
|
||||
|
||||
console.log('##### xyz?6', conditionType, this.conditionParam, param)
|
||||
// console.log('##### xyz?6', conditionType, this.conditionParam, param)
|
||||
switch(conditionType) {
|
||||
case POP_UP_SHOP_CONDITION_TYPE.LV_TO:
|
||||
return param.oldLv < this.conditionParam[0] && param.newLv >= this.conditionParam[0];
|
||||
|
||||
@@ -150,7 +150,7 @@ export class RechargeMoneyData extends ActivityBase {
|
||||
|
||||
public initData(data: string) {
|
||||
let dataObj: RechargeMoneyInDb = JSON.parse(data);
|
||||
console.log(dataObj);
|
||||
// console.log(dataObj);
|
||||
for(let pool of dataObj.pool) {
|
||||
let obj = new RechargeMoneyPool(pool);
|
||||
this.pool.push(obj);
|
||||
|
||||
@@ -75,7 +75,7 @@ export class RefreshShopItem {
|
||||
let records = data.records ? data.records : [];
|
||||
let buyRecords = records.filter(obj => {
|
||||
let curRefTime = getZeroPointOfTime(obj.time, this.refreshType);
|
||||
console.log(curRefTime, refZeroPoint)
|
||||
// console.log(curRefTime, refZeroPoint)
|
||||
return obj && obj.id === this.id && obj.pageIndex == this.pageIndex && curRefTime == refZeroPoint
|
||||
});
|
||||
this.buyCount = buyRecords.length;
|
||||
|
||||
@@ -65,7 +65,7 @@ export class SignInData extends ActivityBase {
|
||||
if(this.type == ACTIVITY_TYPE.SIGN_IN || this.type == ACTIVITY_TYPE.SIGN_IN_VIP) {
|
||||
let time = getZeroPointOfTime(obj.time, SHOP_REFRESH_TYPE.DAILY, 0)
|
||||
let today = getZeroPoint(SHOP_REFRESH_TYPE.DAILY, 0);
|
||||
console.log('setPlayerRecords', time, today)
|
||||
// console.log('setPlayerRecords', time, today)
|
||||
if(day.indexOf(time) == -1 && time < today) {
|
||||
this.todayIndex++;
|
||||
day.push(time);
|
||||
|
||||
Reference in New Issue
Block a user