跳到主要内容

登录注册

登录​

版本: v1

接口信息​

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

请求参数​

参数名类型必填默认值说明
typestring是code登录类型:code验证码登录,password密码登录
accountstring是18423467948手机号或邮箱
phone_codestring否86国家区号(手机号登录时需要传此参数)
codestring否1234验证码(登录类型为验证码登录code时需要传此参数)
passwordstring否123456密码(登录类型为密码登录password时需要传此参数)
remember_passwordstring否1记住密码(登录类型为密码登录password时需要传此参数,1是,0否)
captchastring否1234图形验证码(开启登录图形验证码且为密码登录时或者同一ip地址登录失败3次后需要传此参数)
tokenstring否fd5adaf7267a5b2996cc113e45b38f05图形验证码唯一识别码(开启登录图形验证码且为密码登录时或者同一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

请求参数​

参数名类型必填默认值说明
typestring是phone注册类型:phone手机注册,email邮箱注册
accountstring是18423467948手机号或邮箱
phone_codestring否86国家区号(注册类型为手机注册时需要传此参数)
usernamestring否wyh姓名
codestring是1234验证码
passwordstring是123456密码
re_passwordstring是1重复密码
customfieldobject否{}自定义字段,格式:{"field1":'test',"field2":'test2'}

返回参数​

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

忘记密码​

版本: v1

接口信息​

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

请求参数​

参数名类型必填默认值说明
typestring是phone注册类型:phone手机注册,email邮箱注册
accountstring是18423467948手机号或邮箱
phone_codestring否86国家区号(注册类型为手机注册时需要传此参数)
codestring是1234验证码
passwordstring是123456密码
re_passwordstring是1重复密码