wxfaceapp.facePay({
requireFaceCode: true,
success(res){
console.log("success [launchFaceApp]")
console.log(res.replyCode)
console.log(res.reply)
wxfaceapp.onFacePayPassEvent(function (resc) {
console.log("onFacePayPassEvent retCode = " + res.replyCode, resc)
});
wxfaceapp.onFacePayFailedEvent(function (res) {
console.log("onFacePayFailedEvent retCode = " + res.replyCode)
})
wxfaceapp.onQueryPaymentSucEvent(function (res) {
console.log("onQueryPaymentSucEvent retCode = " + res.replyCode)
})
wxfaceapp.onQueryPaymentFailedEvent(function (res) {
console.log("onQueryPaymentFailedEvent retCode = " + res.replyCode)
})
},
fail(res){
console.log("fail [launchFaceApp]")
console.log(res.replyCode)
console.log(res.reply)
}
})
d代码放在后屏小程序里面,能唤醒刷脸,但刷完脸,4个监听都没回调任何结果
谢邀,没用过
后屏不支持调用facepay