Commit 0a0915ce authored by 李帅's avatar 李帅

+1

parents f58b805b 1c986629
/*
* @Author: ls
* @Date: 2022-05-15 18:22:18
* @LastEditTime: 2022-06-10 11:11:44
* @LastEditTime: 2022-06-10 11:18:04
* @LastEditors: ls
* @Description:
* @FilePath: \ls_gramophone\assets\ls_gramophone\scene\ls_gramophone.ts
*/
import Item from '../script/Item';
import { MyCocosSceneComponent } from '../script/MyCocosSceneComponent';
import { onHomeworkFinish } from '../script/util';
......@@ -254,7 +255,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
let it = this.content.children[idx].getComponent(Item);
it.recorded();
let arr = JSON.parse(res).result.sentences[0].details;
let arr = [];
for (let index = 0; index < JSON.parse(res).result.sentences.length; index++) {
let e = JSON.parse(res).result.sentences[index];
arr = arr.concat(e.details);
}
let arrOne = [];
for (let index = 0; index < arr.length; index++) {
......
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