Commit 9446ee6e authored by zjz1994's avatar zjz1994

红包调整

parent 02ce9d89
......@@ -501,7 +501,7 @@ export default class MainScene extends Scene {
// window['gm'] = this.gm;
//第几关
this.chapter = (data && data.chapter) ? data.chapter : 1;
this.chapter = 1;
// this.chapter = 1;
//关卡数据
this.chapterData = getChapterData(this.chapter);
//初始化目标信息
......@@ -1548,9 +1548,8 @@ export default class MainScene extends Scene {
//初始化节日元素
async initFestivalEle() {
//添加节日元素,条件可能会变
console.log("节日元素判定",fesChapterData,this.chapter,getRedBombTimes(),window['fresp'],this.lattices[festivalIndex]);
var guidelevels = [1, 2, 3, 5, 8, 9, 10, 12, 17, 25, 41, 61, 101, 121, 226, 301,331, 377, 406, 426, 453, 501, 556, 601,661];
if(guidelevels.indexOf(this.chapter)!=-1){
if(guidelevels.indexOf(this.chapter)!=-1&&!readCache(getCacheKey() + this.chapter)){
return false;
}
if(
......
......@@ -4,7 +4,6 @@
"desc": "OK",
"timestamp": 1579512019430,
"data": {
"option": {"img":"//yun.duiba.com.cn/images/201607/73htz55ih9.jpg"},
"orderNum": null,
"remainAwardTimes": 0
}
......
{
"code":"0000000000",
"data":{
"remain": 7,
"remain": 1,
"redBombSwitchTime": "77798963487234"
},
"desc":"OK",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment