Commit 56ade00c authored by liujiangnan's avatar liujiangnan

debug

parent e991a11f
......@@ -59,7 +59,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (testCount < 10) {
await circulate();
} else {
this.showTips(`检测超时`);
this.showTips(`检测超时1`);
}
}
}
......@@ -175,11 +175,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
let testCount = 0;
window["air"].osmoFingerReadCallback = (result) => {
const p = JSON.parse(result);
console.log("===liu39400====", result);
if (p.x == -1 || p.y == -1) {
testCount ++;
if (testCount >= 5) {
// 检测一直没成功,直接放行
this.showTips(`检测超时`);
this.showTips(`检测超时2`);
window["courseware"].closeOsmoFingerRead();
resolve();
}
......@@ -193,7 +194,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
testCount ++;
if (testCount >= 5) {
// 检测一直没成功,直接放行
this.showTips(`检测超时`);
this.showTips(`检测超时3`);
window["courseware"].closeOsmoFingerRead();
resolve();
}
......
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