wx.config({
beta: true,
debug: true,
appId: that.appId,
timestamp: timestamp,
nonceStr: noncestr,
signature: signature,
jsApiList: ['checkJsApi', 'checkIsSupportFaceDetect', 'requestWxFacePictureVerify']
});
wx.ready(function(){
console.log('---wx验证成功--')
let info = {check_alive_type: that.check_alive_type};
let data = JSON.stringify(info);
wx.invoke("checkIsSupportFaceDetect", data,
function(res){
console.log('---checkIsSupportFaceDetect--',res)
if(res.errCode == 0) {
var lib_version_code = res.lib_version_code;
} else {
var ret = res.err_msg;
ret += " errCode: " + res.err_code;
alert(ret);
}
}
);