POST api/CommonAccount/WxBindMobile

通用手机绑定微信号码

Request Information

URI Parameters

None.

Body Parameters

请求值

WxBindMobileReq
NameDescriptionTypeAdditional information
Mobile

手机号码

string

None.

Token

登录toekn

string

None.

UnionId

用户唯一值

string

None.

ProductId

pid产品类型

integer

None.

SmsCode

手机验证码

string

None.

Password

密码

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Mobile": "sample string 1",
  "Token": "sample string 2",
  "UnionId": "sample string 3",
  "ProductId": 4,
  "SmsCode": "sample string 5",
  "Password": "sample string 6"
}

application/xml, text/xml

Sample:
<WxBindMobileReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <Mobile>sample string 1</Mobile>
  <Password>sample string 6</Password>
  <ProductId>4</ProductId>
  <SmsCode>sample string 5</SmsCode>
  <Token>sample string 2</Token>
  <UnionId>sample string 3</UnionId>
</WxBindMobileReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

WxBindMobileRes
NameDescriptionTypeAdditional information
Status

返回状态,1是表示登录成功,7是表示验证码过期,2表示用户不存在,3用户数据出错,4.已绑定过了手机号码,不需要重新绑定了,5当前手机号码已被绑定或是已被注册,6验证码不正确,99表示未登录

integer

None.

Token

accessToken的md5值

string

None.

UnionId

用户唯一值

string

None.

HeadUrl

头像url地址

string

None.

Province

省份

string

None.

City

城市

string

None.

NickName

名称

string

None.

Message

信息

string

None.

ShareCode

用户分享码

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Token": "sample string 2",
  "UnionId": "sample string 3",
  "HeadUrl": "sample string 4",
  "Province": "sample string 5",
  "City": "sample string 6",
  "NickName": "sample string 7",
  "Message": "sample string 8",
  "ShareCode": "sample string 9"
}

application/xml, text/xml

Sample:
<WxBindMobileRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <City>sample string 6</City>
  <HeadUrl>sample string 4</HeadUrl>
  <Message>sample string 8</Message>
  <NickName>sample string 7</NickName>
  <Province>sample string 5</Province>
  <ShareCode>sample string 9</ShareCode>
  <Status>1</Status>
  <Token>sample string 2</Token>
  <UnionId>sample string 3</UnionId>
</WxBindMobileRes>