Commit 24ff06f3 authored by linzhiguo's avatar linzhiguo

- 删除 game_id = aiexerciseid

+ subitem[i].aiexerciseid
parent 94fb0a7f
......@@ -223,9 +223,6 @@ cc.Class({
initView() {
this._game_id = this.data.aiexerciseid;
this._time_node = cc.find('res/time');
this._index = 0;
this._time = this.data.time;
......@@ -459,6 +456,7 @@ cc.Class({
this._time_node.x = this._time;
let info = this.data[this._index];
this._aiexerciseid = info.aiexerciseid;
// info.correct.length = Math.min(info.correct.length, 3);
// info.incorrect.length = Math.min(info.incorrect.length, 3);
......@@ -558,8 +556,10 @@ cc.Class({
},
sendAnswer(answer="", isRight = false){
console.log(this._aiexerciseid, answer, isRight, this._startTime);
if (window && window.courseware) {
window.courseware.sendAnswer(this._game_id, answer, isRight, this._startTime);
window.courseware.sendAnswer(this._aiexerciseid, answer, isRight, this._startTime);
}
},
......
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