Commit 94fb0a7f authored by linzhiguo's avatar linzhiguo

+ 框架增加 game_id = aiexerciseid

parent 1d9bce0e
......@@ -223,6 +223,9 @@ cc.Class({
initView() {
this._game_id = this.data.aiexerciseid;
this._time_node = cc.find('res/time');
this._index = 0;
this._time = this.data.time;
......@@ -556,11 +559,7 @@ cc.Class({
sendAnswer(answer="", isRight = false){
if (window && window.courseware) {
if (window.courseware.sendAnwser)
window.courseware.sendAnwser(answer, isRight, this._startTime);
else if (window.courseware.sendAnswer){
window.courseware.sendAnswer(answer, isRight, this._startTime);
}
window.courseware.sendAnswer(this._game_id, 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