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

接口错误码定义 #41

Open
lingyuuu1 opened this issue Feb 8, 2023 · 0 comments
Open

接口错误码定义 #41

lingyuuu1 opened this issue Feb 8, 2023 · 0 comments

Comments

@lingyuuu1
Copy link

滑动、旋转验证接口: /api/v1
文字,图标,空间,拼图,面积,找不同 接口: /api/v2
刮刮卡接口:/api/v3

含有错误信息的返回示例:

{
    "sid":null,
    "y":null,
    "success":false,
    "p1":null,
    "p2":null,
    "p3":null,
    "code":"4003",
    "msg":"REQUEST_REPEAT",
    "t":null,
    "result":null,
    "bc":null,
    "logo":null,
    "redirectUrl":null,
    "o":null,
    "tp1":null,
    "cw":null,
    "sc1":null,
    "type":null,
    "icons":null,
    "verifyType":null,
    "childVerifyType":null,
    "imgName":null,
    "color":null,
    "chs":null
}

错误码解释:

code 解释
EXCEPTION_CODE 系统内部异常
FAIL 验证失败
INVALID_REQUEST_URL 非法请求地址
SET_REDIS_FAILED redis存储异常
TOO_MANY_RETRIES 重试次数过多
SEMANTICS_UA_VERIFY_ERROR 空间语义ua不合法
SCRATCH_UA_VERIFY_ERROR 刮刮卡ua不合法
TEXT_UA_VERIFY_ERROR 文字类ua不合法
DECRYPT_UA_ERROR ua解析失败
VERIFY_UA_ERROR ua 为空
UA_FORMAT_INVALID ua格式不合法
INVALID_UA 非法ua(版本不对,某些特定字段传的值不对等)
WRONG_ARGS 入参不对
POSITION_MISMATCH 位置校验不对
HIGH_RISK 被决策引擎识别风险拦截
WRONG_SID 会话id不合法(aid与sid生成不一致)
REQUEST_INVALID 无效请求(验证类型不匹配)
REQUEST_TIMEOUT 会话超时
REQUEST_REPEAT 重复请求
INVALID_APPKEY appId不对
INVALID_POSITION 入参,宽高不合法(一般针对滑动类型)
INVALID_CAPTCHA_TYPE 验证码类型不合法(用户自定义类型不正确的情况下)
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