Commit 47477962 authored by 李维's avatar 李维

fix: 去掉逐个单词评分检查

parent ed275436
......@@ -1208,15 +1208,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
* @returns 如果所有单词发音正确,返回true;否则返回false
*/
private checkWords(data) {
const sentences = data.result.sentences;
for (let i = 0; i < sentences.length; i++) {
const details = sentences[i].details;
// 如果有任何单词的评分低于40,则认为发音不正确
const isSuccess = details.some(item => item.overall <= 40);
if (isSuccess) {
return false;
}
}
// const sentences = data.result.sentences;
// for (let i = 0; i < sentences.length; i++) {
// const details = sentences[i].details;
// // 如果有任何单词的评分低于40,则认为发音不正确
// const isSuccess = details.some(item => item.overall <= 40);
// if (isSuccess) {
// return false;
// }
// }
return true;
}
......
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