以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- 关于企业号使用使用生物识别jdK的问题 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=154259) |
-- 作者:ap9709130 -- 发布时间:2020/9/9 15:46:00 -- 关于企业号使用使用生物识别jdK的问题 老师 我现在有项目要在企业号中,使用生物识别的jdK. 我根据扫描的例子,改了相关的代码,但没有效果,请老师指点一下: 代码如下: Dim wb As New WeUI wb.AppendHTML("<script src=\'http://res.wx.qq.com/open/js/jweixin-1.2.0.js\'></script>",True) \'引入JS-SDK库 wb.AppendHTML("<script src=\'/hito/fkqr.js\'></script>") \'引入脚本文件 \'在页面注入权限验证配置 Dim st As New Date(1970,1,1,8,0,0) Dim appid As String = "************" \'CorpID Dim timestamp As Integer = CInt((Date.Now - st).TotalSeconds()) \'时间戳 Dim noncestr As String = Rand.NextString(16) \'随机字符 Dim url As String = e.Request.URL.ToString \'当前页面地址 Dim signature As String = Functions.Execute("GetJsSignature", noncestr, timestamp, url) \'生成权限验证签名 Dim cfg As String = "wx.config({appId:\'{0}\',timestamp:{1},nonceStr:\'{2}\',signature:\'{3}\',jsApiList:[\'config\']});" wb.AppendHTML("<script>" & CExp(cfg,appid,timestamp,noncestr,signature) & "</script>",True) wb.Title = "test" wb.AddForm("","form1","") With wb.AddButtonGroup("form1","btg1",True) \'垂直排列 .Add("test","付款确认","button") End With JS 代码: wx.config({ beta:true, }); wx.ready(function () { alert(1); document.getElementById(\'test\').onclick = function (){ alert(2); wx.invoke("requireSoterBiometricAuthentication", {"auth_mode": 0xff, "challenge": "sample_challenge", "auth_content": "请将使用指纹识别"},function(res){ if(res.errCode == 0) { alert("OK"); //检查use_mode //使用result_json和result_son_signature本地验签是否合法 //使用所提供的后台接口将result_json和result_son_signature发送到微信企业号后台进行验签 //处理验签结果 } else { var ret = res.err_msg; ret += " errCode: " + res.resultCode; alert(ret); } }); [此贴子已经被作者于2020/9/9 15:46:54编辑过]
|
-- 作者:有点蓝 -- 发布时间:2020/9/9 16:01:00 -- 没看到企业微信有什么生物识别jdk,开发文档在哪? |
-- 作者:ap9709130 -- 发布时间:2020/9/9 16:17:00 -- 蓝老师 有啊。请看以下网址:https://qydev.weixin.qq.com/wiki/index.php?title=%E5%BE%AE%E4%BF%A1JS-SDK%E6%8E%A5%E5%8F%A3#.E6.AD.A5.E9.AA.A4.E4.BA.8C.EF.BC.9A.E9.80.9A.E8.BF.87config.E6.8E.A5.E5.8F.A3.E6.B3.A8.E5.85.A5.E6.9D.83.E9.99.90.E9.AA.8C.E8.AF.81.E9.85.8D.E7.BD.AE
|
-- 作者:有点蓝 -- 发布时间:2020/9/9 17:03:00 -- 现在没有企业号这种东西了,已经改为企业微信,我在企业微信没看到有这种接口 |
-- 作者:ap9709130 -- 发布时间:2020/9/9 17:23:00 -- 老师 在网上查了一下,1。2的时候是有的,现在又没有了。 我想问一下,企业微信如果可以调像指纹识别 这类的生物识别?
|
-- 作者:有点蓝 -- 发布时间:2020/9/9 17:39:00 -- 如果人家没有提供接口,是没有办法了。 |