POST api/WxSmallApp/LoginWithPhone

微信小程序登录(phase2),根据小程序code+phone+user登录系统

Request Information

URI Parameters

None.

Body Parameters

WxSmallLoginDto
NameDescriptionTypeAdditional 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:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'WxSmallLoginDto'.

Response Information

Resource Description

微信小程序登录(phase2),根据小程序code+phone+user登录系统

LuiLukLoginReturnDto
NameDescriptionTypeAdditional 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.

IsBindWx

是否绑定了微信

boolean

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<LuiLukLoginReturnDto 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>
  <IsBindWx>true</IsBindWx>
  <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>
</LuiLukLoginReturnDto>