Commit d38a25e5 by zeven

人脸支付返回错误自动重新识别

parent a53e9db3
......@@ -125,7 +125,11 @@ class VerticalPage extends Component {
}
return;
}
const res = await WxFacepay.facepay(params);
let res = await WxFacepay.facepay(params);
if (!res) {
// 返回错误自动重新识别
res = await WxFacepay.facepay(params);
}
if (res.face_code) {
await this.props.barcodepay(res.face_code, true);
// const ret = await this.props.barcodepay(res.face_code, true);
......
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