跳到主要内容

登录注册

登录

版本: v1

接口信息

  • 请求方式: POST
  • 请求地址: /console/v1/login

请求参数

参数名类型必填默认值说明
typestringcode登录类型:code验证码登录,password密码登录
accountstring18423467948手机号或邮箱
phone_codestring86国家区号(手机号登录时需要传此参数)
codestring1234验证码(登录类型为验证码登录code时需要传此参数)
passwordstring123456密码(登录类型为密码登录password时需要传此参数)
remember_passwordstring1记住密码(登录类型为密码登录password时需要传此参数,1是,0否)
captchastring1234图形验证码(开启登录图形验证码且为密码登录时或者同一ip地址登录失败3次后需要传此参数)
tokenstringfd5adaf7267a5b2996cc113e45b38f05图形验证码唯一识别码(开启登录图形验证码且为密码登录时或者同一ip地址登录失败3次后需要传此参数)
customfieldobject{}自定义字段,格式:{"field1":'test',"field2":'test2'}
client_operate_passwordstring-操作密码

返回参数

参数名类型必填默认值说明
data.jwtstring-jwt:登录后放在请求头Authorization里,拼接成如下格式:Bearer+空格+yJ0eX.test.ste
data.ip_exception_verifyarray-状态码400,有该字段,根据返回的验证方式验证,用户异常登录验证方式(operate_password=操作密码)

注册

版本: v1

接口信息

  • 请求方式: POST
  • 请求地址: /console/v1/register

请求参数

参数名类型必填默认值说明
typestringphone注册类型:phone手机注册,email邮箱注册
accountstring18423467948手机号或邮箱
phone_codestring86国家区号(注册类型为手机注册时需要传此参数)
usernamestringwyh姓名
codestring1234验证码
passwordstring123456密码
re_passwordstring1重复密码
customfieldobject{}自定义字段,格式:{"field1":'test',"field2":'test2'}

返回参数

参数名类型必填默认值说明
data.jwtstring-jwt:注册后放在请求头Authorization里,拼接成如下格式:Bearer+空格+yJ0eX.test.ste

忘记密码

版本: v1

接口信息

  • 请求方式: POST
  • 请求地址: /console/v1/account/password_reset

请求参数

参数名类型必填默认值说明
typestringphone注册类型:phone手机注册,email邮箱注册
accountstring18423467948手机号或邮箱
phone_codestring86国家区号(注册类型为手机注册时需要传此参数)
codestring1234验证码
passwordstring123456密码
re_passwordstring1重复密码