AccountService

向手机号或邮箱发送 6 位数字验证码(5 分钟有效,同一目标 60 秒内只能发送一次)。 公开接口,无需登录。type=phone 需管理端已启用短信服务(阿里云);type=email 需已配置 SMTP。

post/v1/account/verification/send

Request

Request body

accountType0 | 1 | 4 | 5

客户账号类型;省略或 0 自动定位,多个候选返回 ACCOUNT_TYPE_REQUIRED。发码与核验必须使用相同类型。

captchaTokenstring

人机验证一次性 token;管理端开启人机验证时必填。内容由生效的验证平台决定: 阿里云验证码 2.0 传 captchaVerifyParam 原串; 极验 GeeTest v4 传含 lot_number / captcha_output / pass_token / gen_time 四个字段的 JSON 字符串。生效平台见 /v1/public/site-settings 的 captchaProvider。

localestring

当前页面语言;zh 及其区域变体使用中文,其他语言使用英文,留空兼容旧客户端使用中文。仅影响邮件。

targetstring required

手机号(type=phone)或邮箱地址(type=email)

type'phone' | 'email' required

验证码类型:phone 短信验证码 / email 邮箱验证码

Response

OK

messagestring
successboolean

Changes