Appearance
当前是否可进行人脸识别
方法名
checkRecognitionStatus
用法
- 用法如下:js
this.$refs.refLevenPayment.closeRecognition(res => { console.log(res) })jsconst refLevenPayment = ref<LevenUtsBaiduUvcFacePaymentXElement | null>(null) const result = refLevenPayment.value.closeRecognition() - 参数说明 无
回调
- 回调示例
json
{
"data": {
"status": false
},
"message": "",
"code": 0
}- 回调说明:
参数名 参数类型 参数描述 message String 消息提示 data Object 数据对象 data.status boolean true:可以进行人脸识别,false:已经关闭人脸识别 code Integer 返回类型,0.成功,其他:失败 uniappx直接返回true/false
