Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能设置 验证码数字的个数啊 #95

Open
HuZai opened this issue Sep 26, 2017 · 0 comments
Open

不能设置 验证码数字的个数啊 #95

HuZai opened this issue Sep 26, 2017 · 0 comments

Comments

@HuZai
Copy link

HuZai commented Sep 26, 2017

CAP.prototype._init = function(args){
if(arguments.length<1) return;//如果不传参数,则全部使用默认值

if(typeof arguments[0] === 'object'){//如果传递了对象,则替换默认值
	var obj = arguments[0];
	this.width = obj.width || this.width;
	this.height = obj.height || this.height;
	this.offset = obj.offset || this.offset;
    this.quality = obj.quality || this.quality;
	this.generate = obj.generate || null;
	this.fontsize = obj.fontsize || this.fontsize;
	return;
}

this._text_len = 6;//这个不能改 啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant