Commit 93a04724 authored by liujiangnan's avatar liujiangnan

feat: 上报蓝思值

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