Commit 7086a8ca by zeven

正常进出不显示错误提示

parent 193ffa7e
......@@ -215,10 +215,12 @@ class FacePage extends Component {
current: 1,
});
}
} else if (ret.code !== 1 && ret.msg) {
} else if (ret.msg) {
let tipText = ret.msg.replace(/扫码/g, '人脸识别');
Speech.speak(tipText);
this.setState({tip: tipText, tipsModal: true});
if (ret.code !== 1) {
this.setState({tip: tipText, tipsModal: true});
}
}
} else {
Speech.speak('正在重新识别,请靠中间站稳');
......
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