https://api.xlongwei.com/service/checkcode/code.json
length | 默认4,验证码长度,可选 |
specials | 默认false,是否允许特殊字符 |
type | 默认-2 随机-1 |
sid | 关联参数,校验时需要 |
image | 验证码图片编码 |
https://api.xlongwei.com/service/checkcode/image
sid | 唯一标识,要求14位以上,示例:“A”+Date.now() |
length | 默认4,验证码长度,可选 |
specials | 默认false,是否允许特殊字符 |
type | 默认-2 随机-1 |
https://api.xlongwei.com/service/checkcode/check.json
sid | 关联参数 |
checkcode | 验证码 |
https://api.xlongwei.com/service/checkcode/image.json
checkcode | String | 验证码 |
image | String | 图片base64 |
https://api.xlongwei.com/service/checkcode/email.json
发送随机验证码到用户邮箱,用户输入验证码来验证自己拥有该邮箱,与手机号验证流程类似。
toEmail | 邮箱地址 |
title | 默认:验证码 |
length | 默认:6位 |
checkcode | 可选 |
sid | 关联参数,校验时需要 |
code | 验证码:字母数字 |
checkcode,提供时发送指定的验证码,否则根据length随机生成验证码
http://cms.xlongwei.com/service/checkcode/audio.json
length | 默认4,验证码长度,可选 |
checkcode | 验证码,可选指定 |
voice | 默认kevin16,可选us1女,us2男 |
type | 默认0数字,可选1字母、2字母数字 |
image | 默认false,true返回图片编码 |
sid | 关联参数,校验时需要 |
audio | 语音编码:data:audio/wav;base64, |
image | 图片编码:data:image/png;base64, |
注:仅支持英文字母