Commit 6ea20421 authored by limingzhe's avatar limingzhe

fix: debug

parent 15fc7fe4
...@@ -380,7 +380,8 @@ cc.Class({ ...@@ -380,7 +380,8 @@ cc.Class({
this.circleRectArr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '7'); this.circleRectArr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '7');
this.signRectArr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '8'); this.signRectArr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '8');
this.colorRectArr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '9'); this.colorRectArr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '9');
this.numRectArr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '10');
this.newRectArr = this.newRectArr.concat(this.numRectArr);
if (this.benchmark1Data) { if (this.benchmark1Data) {
this.initCheckBase(); this.initCheckBase();
...@@ -2566,7 +2567,10 @@ cc.Class({ ...@@ -2566,7 +2567,10 @@ cc.Class({
const animaNode = arr[i]; const animaNode = arr[i];
const key = animaNode.data.rectNew // i.toString(); let key = animaNode.data.rectNew // i.toString();
if (!key && animaNode.data.rectNum) {
key = animaNode.data.rectNum;
}
console.log('~animaNode.data: ', animaNode.data) console.log('~animaNode.data: ', animaNode.data)
console.log('~key: ', key) console.log('~key: ', key)
...@@ -5252,6 +5256,10 @@ cc.Class({ ...@@ -5252,6 +5256,10 @@ cc.Class({
getPhotoData(cb) { getPhotoData(cb) {
cb ({"result":{"text":[{"left":0.7829999923706055,"right":0.8629999756813049,"top":0.23106646537780762,"bottom":0.2905718684196472,"score":1,"content":"3","characters":[{"character":"3","centerLoc":[0.82299995,0.26081917],"poly":[0.783,0.23106647,0.863,0.29057187]}]},{"left":0.574999988079071,"right":0.6470000147819519,"top":0.23724883794784546,"bottom":0.2905718684196472,"score":1,"content":"1","characters":[{"character":"1","centerLoc":[0.611,0.26391035],"poly":[0.575,0.23724884,0.647,0.29057187]}]},{"left":0.35899999737739563,"right":0.43700000643730164,"top":0.23724883794784546,"bottom":0.2982998490333557,"score":1,"content":"4","characters":[{"character":"4","centerLoc":[0.398,0.26777434],"poly":[0.359,0.23724884,0.437,0.29829985]}]},{"left":0.14499999582767487,"right":0.2199999988079071,"top":0.24188563227653503,"bottom":0.299845427274704,"score":1,"content":"2","characters":[{"character":"2","centerLoc":[0.1825,0.27086553],"poly":[0.145,0.24188563,0.22,0.29984543]}]}]}})
return;
cb({"result":{"text":[{"symbol":[3,3,1,1,3,1,3,4,1,1,1,1,1,3,3,3]}]}}) cb({"result":{"text":[{"symbol":[3,3,1,1,3,1,3,4,1,1,1,1,1,3,3,3]}]}})
return; return;
......
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