Appearance
阴影滑块
识别阴影滑块验证码,返回滑块目标坐标。
接口信息
| 项目 | 值 |
|---|---|
| 地址 | /api/slider/comparison |
| 方法 | POST |
| Content-Type | application/json |
| 认证 | 需要 Bearer Token |
| 扣点 | 普通用户扣点,管理员不扣点 |
请求体
json
{
"target_base64": "base64-image",
"background_base64": "base64-image"
}| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
target_base64 | string | 是 | 滑块目标图片 Base64 字符串 |
background_base64 | string | 是 | 背景图片 Base64 字符串 |
curl 示例
bash
curl -X POST "$BASE_URL/api/slider/comparison" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"target_base64\": \"$TARGET_BASE64\",
\"background_base64\": \"$BACKGROUND_BASE64\"
}"返回示例
json
{
"result": 142
}错误码
| 状态码 | 说明 |
|---|---|
401 | Token 无效或过期 |
402 | 余额不足 |
后端调用
python
Atc.Slider_Comparison(
target_base64=data.target_base64,
background_base64=data.background_base64
)