建行中秋叠月饼活动作弊

建行中秋叠月饼活动作弊

游戏规则: 月饼不停的放大缩小,用户需要选择时机释放月饼,保证释的当前月饼长度小于等于上一个月饼的长度,否则游戏结束,月饼叠得越多分数越高。

上传分数时会记录个月饼释放时的时间以及缩放倍数(scaleX)。

image-20220913142706072

最开始使用上一块月饼与当前月饼的长度计算scaleX,上传分数后发现提示作弊。

image-20220913143400853

仔细检查javascript代码后,发现scaleX的值不能超过1.6

1
2
3
4
5
6
7
8
9
10
11
12
13
c.prototype.animationScale = function() {
this.setScaleOrigin(this.width / 2, 0);
var e = 1.15 - .005 * t.houseList.length;
e = e > .75 ? e: .7 + Math.random() / 3,
LF.tweenLite.to(this, e, {
loop: !0,
scaleX: 1.6,
scaleY: 1.6
}).to(this, e, {
scaleX: .3,
scaleY: .3
})
}
1
2
3
4
5
6
7
8
9
var houseList_length = e.houseList.length;
function getRndInteger(min, max) {
return Math.floor(Math.random() * (max - min) ) + min;
}

if(houseList_length> 0 && houseList_length < 70){
var fake_scaleX = getRndInteger(1550,1600)/1000
this.nowHouse.scaleX = fake_scaleX;
}

image-20220913143841766

最终结果:

GIF

image-20220913151830030

image-20220913151845012