Commit 31366cfd authored by liujiangnan's avatar liujiangnan

debug

parent 22c0b1ab
......@@ -154,12 +154,15 @@ export function initAir(_this) {
_this.log(`===成功调用testCallBack=== res == ${res}`);
// 录音异常兼容处理
const resObj = JSON.parse(res);
_this.log(`===调用testCallBack评测异常===${resObj.errCode}`);
if (resObj.errCode) {
_this.log(`===调用testCallBack评测异常===`);
resObj.result = {overall:0};
resObj.audioUrl = "";
res = JSON.stringify(resObj);
_this.showTips(`评测服务信号弱,可能会造成评分不准确,请稍后再来录音评测吧~`);
}
_this.log(`===调用testCallBack评测异常===${res}`);
callback && callback(res);
window.air.testCallBack = null;
};
......
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