Commit b0fda40f by zeven

微信刷脸失败,尝试重新刷脸

parent 7be9f9ca
...@@ -322,7 +322,9 @@ class FacePage extends Component { ...@@ -322,7 +322,9 @@ class FacePage extends Component {
let res = (await WxFacepay.faceinfo(params)) || {}; let res = (await WxFacepay.faceinfo(params)) || {};
if (!res.openid) { if (!res.openid) {
// 返回错误自动重新识别 // 返回错误自动重新识别
// res = (await WxFacepay.faceinfo(params)) || {}; res = (await WxFacepay.faceinfo(params)) || {};
}
if (!res.openid) {
// 返回错误出现二维码扫码 // 返回错误出现二维码扫码
Speech.speak('请扫码开门'); Speech.speak('请扫码开门');
this.setQrcode({action: this.action, tip: '请扫码开门', qrcode: true}); this.setQrcode({action: this.action, tip: '请扫码开门', qrcode: 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