更新
This commit is contained in:
parent
e180055379
commit
a08820a4c9
|
|
@ -202,14 +202,15 @@ export default class Wall extends cc.Component {
|
||||||
this.length = this.wall_Info.length;
|
this.length = this.wall_Info.length;
|
||||||
let name2 = "rotate" + this.wall_Info.length;
|
let name2 = "rotate" + this.wall_Info.length;
|
||||||
this.revolvingNode = this.node.parent.getChildByName("revolving").getChildByName(name2);
|
this.revolvingNode = this.node.parent.getChildByName("revolving").getChildByName(name2);
|
||||||
|
//跳跃门
|
||||||
if (this.wall_Info.jump != undefined) {
|
if (this.wall_Info.jump != undefined) {
|
||||||
this.jumpInit();
|
this.jumpInit();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.jump = null;
|
this.jump = null;
|
||||||
}
|
}
|
||||||
//跳跃门
|
|
||||||
|
|
||||||
|
//变色门
|
||||||
if (this.wall_Info.colorArray) {
|
if (this.wall_Info.colorArray) {
|
||||||
this.colorArray = this.wall_Info.colorArray.split('').map(char => parseInt(char) + 1);
|
this.colorArray = this.wall_Info.colorArray.split('').map(char => parseInt(char) + 1);
|
||||||
this.colorStartArray = this.wall_Info.colorArray.split('').map(char => parseInt(char) + 1);
|
this.colorStartArray = this.wall_Info.colorArray.split('').map(char => parseInt(char) + 1);
|
||||||
|
|
@ -283,7 +284,6 @@ export default class Wall extends cc.Component {
|
||||||
|
|
||||||
//创建特殊类型门
|
//创建特殊类型门
|
||||||
initType() {
|
initType() {
|
||||||
|
|
||||||
switch (this.special) {
|
switch (this.special) {
|
||||||
case WallSpecial.星星门:
|
case WallSpecial.星星门:
|
||||||
let star = cc.instantiate(MapConroler._instance.Block_Prop[this.special]);
|
let star = cc.instantiate(MapConroler._instance.Block_Prop[this.special]);
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ export default class Utils {
|
||||||
wx.login({
|
wx.login({
|
||||||
success(res) {
|
success(res) {
|
||||||
console.log("微信login成功");
|
console.log("微信login成功");
|
||||||
|
let restart = 0;
|
||||||
//console.log(res.code);
|
//console.log(res.code);
|
||||||
if (res.code) {
|
if (res.code) {
|
||||||
// 标志位,用于记录 callBack 是否已经被调用
|
// 标志位,用于记录 callBack 是否已经被调用
|
||||||
|
|
@ -47,6 +48,11 @@ export default class Utils {
|
||||||
});
|
});
|
||||||
// 如果回调未调用,6 秒后再次请求
|
// 如果回调未调用,6 秒后再次请求
|
||||||
if (!isCallBackCalled) {
|
if (!isCallBackCalled) {
|
||||||
|
restart++;
|
||||||
|
if (restart > 5) {
|
||||||
|
console.log("登录失败,重试次数超过5次");
|
||||||
|
cc.fx.GameTool.trackErrorToShushu({ message: "登录失败,重试次数超过5次" })
|
||||||
|
}
|
||||||
setTimeout(pollLogin, 6000);
|
setTimeout(pollLogin, 6000);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -450,8 +450,8 @@ var GameTool = {
|
||||||
//关卡上限
|
//关卡上限
|
||||||
maxLevel() {
|
maxLevel() {
|
||||||
let jg = false;
|
let jg = false;
|
||||||
if (cc.fx.GameConfig.GM_INFO.level > 1199) {
|
if (cc.fx.GameConfig.GM_INFO.level > 1169) {
|
||||||
cc.fx.GameConfig.GM_INFO.level = 1200;
|
cc.fx.GameConfig.GM_INFO.level = 1170;
|
||||||
jg = true;
|
jg = true;
|
||||||
}
|
}
|
||||||
return jg;
|
return jg;
|
||||||
|
|
@ -2094,6 +2094,7 @@ var GameTool = {
|
||||||
},
|
},
|
||||||
|
|
||||||
trackErrorToShushu(error: any) {
|
trackErrorToShushu(error: any) {
|
||||||
|
// console.log("进入报错系统", error);
|
||||||
if (error == null) {
|
if (error == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -2125,17 +2126,8 @@ var GameTool = {
|
||||||
else if (error.message.includes("null is not an object(evaluating 'n.setPosition')")) {
|
else if (error.message.includes("null is not an object(evaluating 'n.setPosition')")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (error.message.includes("")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
else if (error.message.includes("")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
else if (error.message.includes("")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("_____________________上报错误");
|
|
||||||
if (!cc.fx.GameConfig.GM_INFO.error_message.includes(error.message)) {
|
if (!cc.fx.GameConfig.GM_INFO.error_message.includes(error.message)) {
|
||||||
cc.fx.GameConfig.GM_INFO.error_message.push(error.message);
|
cc.fx.GameConfig.GM_INFO.error_message.push(error.message);
|
||||||
}
|
}
|
||||||
|
|
@ -2143,8 +2135,9 @@ var GameTool = {
|
||||||
console.log("_____________________上报结束,关闭重复");
|
console.log("_____________________上报结束,关闭重复");
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
wx.offError();
|
wx.offError();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
// console.log("_____________________上报错误", error);
|
||||||
let errorData = {
|
let errorData = {
|
||||||
error_type: "javascript",
|
error_type: "javascript",
|
||||||
error_message: error.message,
|
error_message: error.message,
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@
|
||||||
"y": -120,
|
"y": -120,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"stacking": 5,
|
"stacking": 4,
|
||||||
"colorChange": true,
|
"colorChange": true,
|
||||||
"id": 310
|
"id": 310
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,7 @@
|
||||||
"floor": 1,
|
"floor": 1,
|
||||||
"floorTime": 7,
|
"floorTime": 7,
|
||||||
"floorMove": true,
|
"floorMove": true,
|
||||||
"id": 330
|
"id": 370
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 0,
|
"block": 0,
|
||||||
|
|
@ -209,36 +209,40 @@
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"adhesiveTime": 1,
|
"adhesiveTime": 1,
|
||||||
"id": 340
|
"floor": 1,
|
||||||
|
"floorTime": 7,
|
||||||
|
"floorMove": true,
|
||||||
|
"id": 380
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 0,
|
"block": 0,
|
||||||
"color": 2,
|
"color": 2,
|
||||||
"type": 0,
|
"type": 9,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 120,
|
"x": 120,
|
||||||
"y": -120,
|
"y": -120,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
|
"adhesiveTime": 2,
|
||||||
"floor": 2,
|
"floor": 2,
|
||||||
"floorTime": 2,
|
"floorTime": 2,
|
||||||
"floorMove": true,
|
"floorMove": true,
|
||||||
"id": 350
|
"id": 370
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"block": 0,
|
"block": 0,
|
||||||
"color": 4,
|
"color": 4,
|
||||||
"type": 16,
|
"type": 9,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": -120,
|
"y": -120,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"questionTime": 5,
|
"adhesiveTime": 1,
|
||||||
"floor": 2,
|
"floor": 2,
|
||||||
"floorTime": 2,
|
"floorTime": 2,
|
||||||
"floorMove": true,
|
"floorMove": true,
|
||||||
"id": 360
|
"id": 380
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user