...
|
...
|
@@ -4,7 +4,6 @@ |
|
|
|
|
|
var $ = require('yoho-jquery');
|
|
|
|
|
|
require('../common/promise');
|
|
|
|
|
|
var GeeCaptcha = function(container, options) {
|
|
|
var optionDefault = {
|
...
|
...
|
@@ -18,6 +17,10 @@ var GeeCaptcha = function(container, options) { |
|
|
this.$tip = this.$container.find('.img-check-tip-gee');
|
|
|
this._result = [];
|
|
|
this._captchObj = null;
|
|
|
|
|
|
// NODE: 这个是专门给自动化测试做的后门
|
|
|
this.$_____trojanYohobuy = this.$container.find('#yohobuy');
|
|
|
|
|
|
return this;
|
|
|
};
|
|
|
|
...
|
...
|
@@ -26,7 +29,7 @@ GeeCaptcha.prototype = { |
|
|
var _this = this;
|
|
|
|
|
|
$.get('/passport/geetest/register?t=' + $.now()).then(function(data) {
|
|
|
initGeetest && initGeetest({
|
|
|
initGeetest && initGeetest({ // eslint-disable-line
|
|
|
gt: data.gt,
|
|
|
challenge: data.challenge,
|
|
|
product: 'float', // 产品形式,包括:float,embed,popup。注意只对PC版验证码有效
|
...
|
...
|
@@ -107,6 +110,11 @@ GeeCaptcha.prototype = { |
|
|
},
|
|
|
|
|
|
getResults: function() {
|
|
|
if (this.$_____trojanYohobuy && this.$_____trojanYohobuy.val()) {
|
|
|
this._result = [];
|
|
|
this._result.push(this.$_____trojanYohobuy.val());
|
|
|
}
|
|
|
|
|
|
return this._result.join(',');
|
|
|
},
|
|
|
|
...
|
...
|
@@ -141,5 +149,6 @@ GeeCaptcha.prototype = { |
|
|
|
|
|
GeeCaptcha.prototype.construct = GeeCaptcha;
|
|
|
|
|
|
require('../common/promise');
|
|
|
|
|
|
module.exports = GeeCaptcha; |
...
|
...
|
|