GET api/CaptchaInfo/GenerateSelfCaptchaCode?GenerateMode={GenerateMode}&Width={Width}&Height={Height}&ExpiryWindow={ExpiryWindow}&IP={IP}&UserId={UserId}&Format={Format}&VerifyScene={VerifyScene}

获取内部实现验证码图像,一分钟内可请求一次

Request Information

URI Parameters

NameDescriptionTypeAdditional information
GenerateMode

验证码模式,默认混合模式

VerifyCodeType

None.

Width

验证码图片宽度,默认100

integer

None.

Height

验证码图片宽度,默认40

integer

None.

ExpiryWindow

失效滑动窗口时间(秒),默认180秒(3分钟)

integer

None.

IP

生成IP地址,后端填写

string

None.

UserId

生成用户标识,后端填写

integer

None.

Format

图片格式,默认GIF

ImageExt

None.

VerifyScene

验证场景

Mh163kSelfImplementVerifyType

None.

Body Parameters

None.

Response Information

Resource Description

获取内部实现验证码图像,一分钟内可请求一次

Collection of byte

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<base64Binary xmlns="http://schemas.microsoft.com/2003/10/Serialization/">QEA=</base64Binary>