POST api/WxSmallApp/LoginWithPhone
微信小程序登录(phase2),根据小程序code+phone+user登录系统
Request Information
URI Parameters
None.
Body Parameters
WxSmallLoginDtoName | Description | Type | Additional information |
---|---|---|---|
phoneString |
通过wx.getPhoneNumber获取的手机号加密字符串 |
string |
None. |
userString |
通过微信接口获取的用户个人信息 |
string |
None. |
code |
通过wx.login获取的code |
string |
None. |
smallAppId |
调用163k小程序种类(同城 or 房产 or 其他) |
WxSmallType |
None. |
Scene |
分销场景 |
ExtensionSource |
None. |
uid |
分销/推广人id |
integer |
None. |
Request Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml, text/xml
Sample:
<WxSmallLoginDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.WeChat"> <Scene>Love</Scene> <code>sample string 3</code> <smallAppId>WxSmallTc</smallAppId> <uid>4</uid> <phoneString>sample string 1</phoneString> <userString>sample string 2</userString> </WxSmallLoginDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
微信小程序登录(phase2),根据小程序code+phone+user登录系统
WxSmallAppLoginReturnDtoName | Description | Type | Additional information |
---|---|---|---|
lui |
用户id |
string |
None. |
luk |
用户key |
string |
None. |
userstate |
用户半识别码 |
string |
None. |
ErrorMessage |
错误消息 |
string |
None. |
Siteinfo_Jifenname |
积分名称 |
string |
None. |
Siteinfo_Daijinname |
代金币名称 |
string |
None. |
Siteinfo_Jifenshu |
积分代金币换算比例 |
decimal number |
None. |
RequireBindPhone |
为true表示要求绑定手机号且当前用户无手机号 |
boolean |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml, text/xml
Sample:
<WxSmallAppLoginReturnDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Login"> <ErrorMessage>sample string 4</ErrorMessage> <RequireBindPhone>true</RequireBindPhone> <Siteinfo_Daijinname>sample string 6</Siteinfo_Daijinname> <Siteinfo_Jifenname>sample string 5</Siteinfo_Jifenname> <Siteinfo_Jifenshu>7.1</Siteinfo_Jifenshu> <lui>sample string 1</lui> <luk>sample string 2</luk> <userstate>sample string 3</userstate> </WxSmallAppLoginReturnDto>