Commit c7b5c41c authored by 李维's avatar 李维

添加分数上报信息

parent fc1cfeaa
......@@ -923,6 +923,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) {
......@@ -997,7 +998,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