Commit 1d5b8357 authored by linzhiguo's avatar linzhiguo

~

parent 4d1af7fd
...@@ -300,12 +300,14 @@ cc.Class({ ...@@ -300,12 +300,14 @@ cc.Class({
this._aiexerciseid = info.aiexerciseid; this._aiexerciseid = info.aiexerciseid;
//this.hit_result = info.correct; //this.hit_result = info.correct;
let tmp = this.data.answer[this._mouse_index];
this.hit_result = false; this.hit_result = false;
if (tmp != null){ if (this.data.answer != null){
this.hit_result = info.word == tmp.toUpperCase() || info.word == tmp.toLowerCase(); let tmp = this.data.answer[this._mouse_index];
if (tmp != null){
this.hit_result = info.word == tmp.toUpperCase() || info.word == tmp.toLowerCase();
}
} }
this._astr = info.word; this._astr = info.word;
......
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