系统-验证码设置-获取

接口信息

  • 接口地址: {your-site-url}/api/skill/system-setting/captcha-get
  • 基础 URL: {your-site-url} 需替换为你自己的独立站 URL 地址,如 https://your-domain.com/apimanager666
  • 请求方式: GET
  • 说明: 此接口用于获取验证码相关设置

认证

请求头中需要携带 skill-access-token

Header
skill-access-token {your-skill-access-token} (请替换为你自己的 token)

请求参数

无需传参。


请求示例

cURL

curl --location --request GET '{your-site-url}/api/skill/system-setting/captcha-get' \
--header 'skill-access-token: {your-skill-access-token}' \
--data-raw ''

返回结果

code200 表示调用成功;code 不为 200 表示调用失败。

成功响应

{
    "code": 200,
    "data": {
        "manager_login": 2,
        "front_register_account": 1,
        "front_contacts": 1,
        "product_review": 1,
        "b2b_inquire": 1,
        "b2c_inquire": 1,
        "b2b_inquire_sheet": 1,
        "length": 4,
        "str_type": 1,
        "expire": 480,
        "bg_color": "random",
        "font_color": "#F7F4F4",
        "vert_color": "random",
        "text_position": "center",
        "text_angle": "center"
    },
    "message": "success"
}

返回字段说明

字段 类型 说明
code Number 状态码,200 表示成功
message String 执行结果的文字描述
data Object 验证码设置数据

data 子字段

字段 类型 说明
manager_login int 商家端后台登录验证码。1 = 开启,2 = 关闭
front_register_account int 前台商城注册账户验证码。1 = 开启,2 = 关闭
front_contacts int 前台商城 Contacts 验证码。1 = 开启,2 = 关闭
product_review int 前台商城商品评论验证码。1 = 开启,2 = 关闭
b2b_inquire int B2B 店铺前台商城询盘验证码。1 = 开启,2 = 关闭
b2b_inquire_sheet int B2B 店铺前台商城询盘表验证码。1 = 开启,2 = 关闭
b2c_inquire int B2C 店铺前台商城询盘验证码。1 = 开启,2 = 关闭
length int 验证码长度。456
str_type int 验证码类型。1 = 仅数字,2 = 仅字母,3 = 数字和字母
expire int 验证码过期时间,单位:秒
bg_color string 验证码背景色。random 或固定颜色值
font_color string 验证码字体颜色。random 或固定颜色值
vert_color string 验证码干扰线颜色。random 或固定颜色值
text_position string 验证码文本位置。randomcenter
text_angle string 验证码旋转角度。rotatecenter

注意事项

  1. GET 请求,无需传参
  2. 系统-验证码设置-保存 配套使用,get 获取配置,set 保存配置
Copyright © fecify.com 2025 all right reserved,powered by Gitbook该文件修订时间: 2026-05-27 21:53:54

results matching ""

    No results matching ""