| | |
| | | dataType: "json", |
| | | async: true, |
| | | success: function (result) { |
| | | debugger; |
| | | //alert(objToStr(data)); |
| | | //指纹采集次数 |
| | | var collCount = 0; |
| | | ret = result.ret; |
| | | console.log('ret', ret) |
| | | if (ret == 0) { |
| | | collCount = result.data.enroll_index; |
| | | base64FPImg = result.data.jpg_base64; |
| | | //将定时器关闭 |
| | | clearTimeout(verifyTimer); |
| | | } |
| | | if (collCount == 0) { |
| | | //定时器 |
| | | timer = setTimeout("checkColl()", 200);//比对失败重新开始 |
| | | } |
| | | else { |
| | | //将定时器关闭 |
| | | clearTimeout(verifyTimer); |
| | | |
| | | //显示指纹图像 |
| | | showImage(globalContext, base64FPImg, "verification"); |
| | | //存放国际化元素数组 |
| | |
| | | getFPTemplate(paramArray, "verification"); |
| | | $("#oneToMany").attr("disabled", false); |
| | | $("#oneToOne").attr("disabled", false); |
| | | setTimeout("beginCapture(null)", 200); |
| | | // setTimeout("beginCapture(null)", 200); |
| | | |
| | | console.log('1', getFPTemplate(paramArray, "verification")) |
| | | console.log('2', $("#oneToMany").attr("disabled", false)) |
| | |
| | | $("#bg").css("display", "none"); |
| | | $("#box").css("display", "none"); |
| | | $("#comparisonDiv").css("display", "none"); |
| | | |
| | | } |
| | | |
| | | //初始化界面数据,即清除指纹记录。 |