webView 加在html 阿里云数据风控无痕验证
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
webView.setWebChromeClient(webChromeClient);
webView.setWebViewClient(webViewClient);
webView.loadDataWithBaseURL(null, url, "text/html; charset=UTF-8", "utf-8", null);
上面初始化大概就这些。url 是后台反的一个html
其中
document.getElementById('register').onclick = function() {
var params = 'a=' + getNVCVal()
yourRegisterRequest('http://cf.aliyun.com/nvc/nvcAnalyze.jsonp', params)
}
无法进入下一步yourRegisterRequest()里面 ,然后把getNVCVal()注释掉后可以了
问题应该在getNVCVal()里面但是getNVCVal()是阿里云自带的方法
这个接口调用的过程中需带上getNVCVal()获取的人机信息串 这里没法通过
在logcat 里面出现I/chromium: [INFO:CONSOLE(365)] "Uncaught ReferenceError: getNVCVal is not defined", source: about:blank (365)这个
试过用浏览器打开这个html 在理面又可以 ios也试过是可以的
是Android 要做其他什么操作吗。