Commit 2022261c authored by 李维's avatar 李维

添加分数上报信息

parent 4f93ad6b
......@@ -840,6 +840,7 @@ cc.Class({
recrodEnd(data) {
let score = data.result.overall;
this._stageData.curScore = score;
this._stageData.audio_url = data.audioUrl;
// score = (score / 100) * 40 + (100 - 40);
// score = 40;
if (score >= 80) {
......@@ -921,7 +922,8 @@ cc.Class({
console.log(' in pushResultData');
const word = this._stageData.word;
const score = this._stageData.curScore;
this.resultArr.push({ word, score });
const audio_url = this._stageData.audio_url;
this.resultArr.push({ word, score, audio_url });
},
......
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