小程序登陆
/wechat/mp_auth
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/x-www-form-urlencoded
Body 参数multipart/form-data
code
必需
小程序登陆授权code code 和 key 二选一
cache_key
必需
小程序授权缓存key code 和 key 二选一
spread_spid
分享上级推广人id
spread_code
扫码上级推广人
iv
iv
encryptedData
必需
encryptedData
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSON
数据结构
status
number
可选
msg
string
可选
data
object {4}
可选
cache_key
string
可选
token
string
可选
userInfo
object {21}
可选
expires_time
number
可选
示例
{
"status": 0,
"msg": "string",
"data": {
"cache_key": "string",
"token": "string",
"userInfo": {
"uid": 0,
"real_name": "string",
"birthday": 0,
"card_id": "string",
"partner_id": 0,
"group_id": 0,
"nickname": "string",
"avatar": "string",
"phone": "string",
"now_money": "string",
"integral": "string",
"sign_num": 0,
"level": 0,
"spread_uid": 0,
"spread_time": 0,
"user_type": "string",
"is_promoter": 0,
"pay_count": 0,
"spread_count": 0,
"addres": "string",
"adminid": 0
},
"expires_time": 0
}
}
修改时间 2 年前