POST api/WxSmallApp/Login

微信小程序登录,根据小程序code登录系统

Request Information

URI Parameters

None.

Body Parameters

BaseWxSmallLoginDto
NameDescriptionTypeAdditional information
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:
<BaseWxSmallLoginDto 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 1</code>
  <smallAppId>WxSmallTc</smallAppId>
  <uid>2</uid>
</BaseWxSmallLoginDto>

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 'BaseWxSmallLoginDto'.

Response Information

Resource Description

微信小程序登录,根据小程序code登录系统

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>