POST api/CommonAccount/Register

手机号码注册

Request Information

URI Parameters

None.

Body Parameters

RegisterReq
NameDescriptionTypeAdditional information
UserName

手机号码

string

None.

Password

密码

string

None.

ConfirmPassword

确认密码

string

None.

Code

短信验证码

string

None.

Imei

用户imei,用于绑定以前的imei功能

string

None.

MachineUniqueId

用户的手机唯一值

string

None.

source

integer

None.

MdUniqueid

string

None.

ShareCode

string

None.

ProductId

产品编号

integer

None.

Token

令牌,唯一标识,主要用来验权

string

None.

ChannalId

渠道号

string

None.

Version

外部版本

string

None.

language

语言

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "ConfirmPassword": "sample string 3",
  "Code": "sample string 4",
  "Imei": "sample string 5",
  "MachineUniqueId": "sample string 6",
  "source": 7,
  "MdUniqueid": "sample string 8",
  "ShareCode": "sample string 9",
  "ProductId": 10,
  "Token": "sample string 11",
  "ChannalId": "sample string 12",
  "Version": "sample string 13",
  "language": "sample string 14"
}

application/xml, text/xml

Sample:
<RegisterReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <ChannalId>sample string 12</ChannalId>
  <ProductId>10</ProductId>
  <Token>sample string 11</Token>
  <Version>sample string 13</Version>
  <language>sample string 14</language>
  <Code>sample string 4</Code>
  <ConfirmPassword>sample string 3</ConfirmPassword>
  <Imei>sample string 5</Imei>
  <MachineUniqueId>sample string 6</MachineUniqueId>
  <MdUniqueid>sample string 8</MdUniqueid>
  <Password>sample string 2</Password>
  <ShareCode>sample string 9</ShareCode>
  <UserName>sample string 1</UserName>
  <source>7</source>
</RegisterReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MobileLoginRes
NameDescriptionTypeAdditional information
UserUnionId

用户唯一值

string

None.

UserHead

头像url地址

string

None.

Mobile

手机号码

string

None.

Province

省份

string

None.

City

城市

string

None.

NickName

名称

string

None.

IsBindingWechat

是否已绑定微信,1表示已绑定,0表示未绑定

integer

None.

Token

用户令牌,后续验权用

string

None.

ShareCode

用户分享码

string

None.

IsSetParentCode

是否填写上级邀请码,1为已填写,0为未填写

integer

None.

sex

性别

integer

None.

birthday

生日

string

None.

signature

个性签名

string

None.

IsValidateUser

是否实名

integer

None.

ChangedMachineCount

不同设备登录次数

integer

None.

MachineCanLoginCount

总共可以切换几次机器

integer

None.

IsChangeMachine

针对上次是否已切换机器

boolean

None.

isH5ShareToPay

integer

None.

UserDesc

string

None.

IsSetPassword

integer

None.

Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "UserUnionId": "sample string 1",
  "UserHead": "sample string 2",
  "Mobile": "sample string 3",
  "Province": "sample string 4",
  "City": "sample string 5",
  "NickName": "sample string 6",
  "IsBindingWechat": 7,
  "Token": "sample string 8",
  "ShareCode": "sample string 9",
  "IsSetParentCode": 10,
  "sex": 11,
  "birthday": "sample string 12",
  "signature": "sample string 13",
  "IsValidateUser": 14,
  "ChangedMachineCount": 15,
  "MachineCanLoginCount": 16,
  "IsChangeMachine": true,
  "isH5ShareToPay": 18,
  "UserDesc": "sample string 19",
  "IsSetPassword": 20,
  "Message": "sample string 21",
  "Status": 22
}

application/xml, text/xml

Sample:
<MobileLoginRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <Message>sample string 21</Message>
  <Status>22</Status>
  <ChangedMachineCount>15</ChangedMachineCount>
  <City>sample string 5</City>
  <IsBindingWechat>7</IsBindingWechat>
  <IsChangeMachine>true</IsChangeMachine>
  <IsSetParentCode>10</IsSetParentCode>
  <IsSetPassword>20</IsSetPassword>
  <IsValidateUser>14</IsValidateUser>
  <MachineCanLoginCount>16</MachineCanLoginCount>
  <Mobile>sample string 3</Mobile>
  <NickName>sample string 6</NickName>
  <Province>sample string 4</Province>
  <ShareCode>sample string 9</ShareCode>
  <Token>sample string 8</Token>
  <UserDesc>sample string 19</UserDesc>
  <UserHead>sample string 2</UserHead>
  <UserUnionId>sample string 1</UserUnionId>
  <birthday>sample string 12</birthday>
  <isH5ShareToPay>18</isH5ShareToPay>
  <sex>11</sex>
  <signature>sample string 13</signature>
</MobileLoginRes>