Commit 762948de authored by liujiangnan's avatar liujiangnan

feat: 蓝思值兼容

parent ecd97694
......@@ -897,7 +897,11 @@ function drawResult(data, text) {
// 获取蓝思评测值
cw.lansiEvaluation(text, (res) => {
const lexile_range = JSON.parse(res).data.lexile_range || null;
const lansiData = JSON.parse(res).data;
let lexile_range = null;
if(lansiData){
lexile_range = lansiData.lexile_range;
}
// 上报成绩
cw.sendAnswer({
lexile_range,
......
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