logo
logo
请输入关键词搜索产品或者文档
中国

中国站

创蓝云智

国际站

Innopaas

业务容灾方案(小程序)

更新时间:2026-07-07 15:59:39

业务容灾方案(小程序)

业务客户端(前端)容灾

验证码小程序插件已完成交互验证请求时的容灾处理,您需要保证验证码小程序插件为最新版本即可。

业务客户端(后端)容灾

当请求验证码票据校验接口发生异常时,客户服务端需做出相应的业务异常处理(例如跳过这次验证),保证不会因为接口返回结构异常,请求超时或服务未响应而阻碍业务流程。如下为几种异常返回的情况,需要客户侧进行容灾。

  • 请求超时或服务未响应。
  • 返回异常,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"
}
24小时热线 400-9669-253