一、业务客户端(前端)容灾
验证码小程序插件已完成交互验证请求时的容灾处理,你需要保证验证码小程序插件为最新版本即可。
二、业务客户端(后端)容灾
当请求验证码票据校验接口发生异常时,客户服务端需做出相应的业务异常处理(例如跳过这次验证),保证不会因为接口返回结构异常,请求超时或服务未响应而阻碍业务流程。如下为几种异常返回的情况,需要客户侧进行容灾。
·请求超时或服务未响应。
·返回异常,Code为InternalError,接口返回举例如下:
{ "Response": { "Error": { "Code": "InternalError", "Message": "An internal error has occurred. Retry your request, but if the problem persists, contact us." }, "RequestId": "xxxxxxxxxxx" }}
·服务内部错误,CaptchaCode 为26,接口返回举例如下:
{ "Response": { "CaptchaCode": 26, "CaptchaMsg": "system internal error 详情请参考:腾讯云-验证码-产品文档,搜索关键字“DescribeCaptchaMiniResult”,查看输出参数中CaptchaCode字段的具体描述", "RequestId": "xxxxxxxxxxx" }, "retcode": 0, "retmsg": "ok"}
三、更多信息
你可以登录 验证码控制台,在页面右下角单击快速咨询,了解更多详细信息。