Commit 93a04724 authored by liujiangnan's avatar liujiangnan

feat: 上报蓝思值

parent 6ee9981f
...@@ -888,16 +888,21 @@ function drawResult(data, text) { ...@@ -888,16 +888,21 @@ function drawResult(data, text) {
$("#recorder-text").html(annotationHtml); $("#recorder-text").html(annotationHtml);
$("#evaluation").html(evaluateHtml); $("#evaluation").html(evaluateHtml);
// 上报成绩 // 获取蓝思评测值
cw.sendAnswer({ cw.lansiEvaluation(text, (res) => {
"duration": timeLen, const lexile_range = JSON.parse(res).data.lexile_range || null;
"recorderArr": stuUserAspect.recorderArr, // 上报成绩
"score": score, cw.sendAnswer({
"complete": Math.floor(integrity * 100), lexile_range,
"fluent": Math.floor(fluency * 100), "duration": timeLen,
"grammar": temp.overall, "recorderArr": stuUserAspect.recorderArr,
"detail": temp.detail "score": score,
}); "complete": Math.floor(integrity * 100),
"fluent": Math.floor(fluency * 100),
"grammar": temp.overall,
"detail": temp.detail
});
});
} }
function insertString(string, insert, index){ function insertString(string, insert, 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