注释掉一些log
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user