Commit f6a328c1 authored by limingzhe's avatar limingzhe

fix: debug

parent 1ad5a620
No preview for this file type
...@@ -1372,7 +1372,7 @@ cc.Class({ ...@@ -1372,7 +1372,7 @@ cc.Class({
}, },
resultItemArr: null, resultItemArr: null,
async initOtherPlayerItem() { initOtherPlayerItem() {
console.log(' in initOtherPlayerItem') console.log(' in initOtherPlayerItem')
...@@ -1954,24 +1954,24 @@ cc.Class({ ...@@ -1954,24 +1954,24 @@ cc.Class({
this.sendServerEvent('send_result', data); this.sendServerEvent('send_result', data);
this.sendResult(); // this.sendResult();
}, },
sendResult() { sendResult() {
const data = { teethDataArr: this.teethDataArr, uuid: this.playerId }; // const data = { teethDataArr: this.teethDataArr, uuid: this.playerId };
const node = cc.find('middleLayer'); // const node = cc.find('middleLayer');
if (node) { // if (node) {
console.log('node exist'); // console.log('node exist');
const mScript = node.getComponent('middleLayer'); // const mScript = node.getComponent('middleLayer');
console.log(' saveAnswer ~ :', JSON.stringify(data)); // console.log(' saveAnswer ~ :', JSON.stringify(data));
mScript.saveAnswer(data, () => { // mScript.saveAnswer(data, () => {
callback && callback(); // callback && callback();
}) // })
} // }
// if (window && window.courseware) { // if (window && window.courseware) {
......
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