Commit 93a04724 authored by liujiangnan's avatar liujiangnan

feat: 上报蓝思值

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