Commit 1d5b8357 authored by linzhiguo's avatar linzhiguo

~

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