Commit 760f1475 authored by Tt's avatar Tt

1

parent 1417bb19
No preview for this file type
...@@ -420,10 +420,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -420,10 +420,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
sendData() { sendData() {
return new Promise(res => { return new Promise(res => {
let upData: any = { let upData: any = {
word_count: this.data.word_count, word_count: this.data.word_count || 0,
sentence_count: this.data.sentence_count, sentence_count: this.data.sentence_count || 0,
zi_count: this.data.zi_count, zi_count: this.data.zi_count || 0,
score: this.score, score: this.score || 0,
}; };
let recordList = pg.hw.getRecord(); let recordList = pg.hw.getRecord();
if (recordList && recordList.length > 0) { if (recordList && recordList.length > 0) {
......
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