Commit 90035b77 authored by Tt's avatar Tt

1

parent 94759aba
......@@ -827,7 +827,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 获取最后一次录音数据
const lastVoice = Game.getIns().player.getLastVoice();
if (lastVoice.questionId != this.touchData.id) {
if (!lastVoice || lastVoice.questionId != this.touchData.id) {
this.onRecordFail();
return;
}
......
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