注册接口

接口地址:/api/v1/user/register/save

基础参数:app需要携带AppToken,如何携带请看: AppToken方式专有的请求头

业务参数请看: 接口设计-登录、注册、忘记密码、修改密码、短信邮箱验证码

app的返回结果:

注册成功后,服务端返回json数据,主要有AppToken和基本的用户信息。请App持久存储AppToken。

{
"status":"200",
"message":"注册成功",
"data":{
    "AppToken":"22bcf04ccbbc48b88cf2acb0d879846d",
    "user":{"userName":"fanxiuxiu3","userId":621,"isTypeUserPurchaser":true}
    },
"page":{}
}

wap的返回结果:

注册成功后服务端返回了以下数据:

  1. 服务端会向移动客户端(是手机浏览器)写cookie,相关文档: usm-用户登录状态管理器
  2. 服务端会响应json数据,内容是会员中心的url地址。请移动端跳转到此url。
{
"status":"200",
"message":"注册成功",
"data":"/user/userCentral.htm",
"page":{}
}