接口名称 1使用code获取openId-unoinId    
地址 https://api.cnlive.com/open/api2/user/loginInWxJsCode.action
method post
返回数据 json

请求参数说明:

参数 必选 类型 说明
appId true string 应用ID
jsCode true string 微信jsCode
source true string 小程序
noNeedUserInfo true string 不需要获取用户信息 true 不需要 false 需要
clientPlat true string 客户端平台[i:IOS客户端,a:Android客户端, w: 网页]
sign true string 签名

返回格式说明:


{
 "errorCode": "0",
 "errorMessage": "成功"
 "data":{
 "appId": "769_002",
 "openId": "aaabbb",
 "unionId": "asd123",
 "sid": "111",
 "hasUserInfo":false
 }
}
{
 "errorCode": "42015",
 "errorMessage": "未注册"
 "data":{
 "appId": "769_002",
 "openId": "aaabbb",
 "unionId": "cdnsifbeiu",
 "sid": "",
 "hasUserInfo":true
 }
}
{
 "errorCode": "42018",
 "errorMessage": "unionId错误"
}

{
 "errorCode": "1",
 "errorMessage": "请求参数无效"
}


{
 "errorCode": "41005",
 "errorMessage": "ClientPlat无效"
}
{
 "errorCode": "40005",
 "errorMessage": "其他错误"
}