AccountService

发送验证码

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

post/v1/account/verification/send

Request body

localestring

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

targetstring required

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

type'phone' | 'email' required

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

Response

OK

messagestring
successboolean

Changes