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