4.11 获取微信unionId.md 1.68 KB

请求参数说明:

参数 必选 类型 说明
appId true string 应用ID
openId true string 微信openId
userEncryptedData true string 微信加密信息
iv true string 微信iv
clientPlat true string 客户端平台[i:IOS客户端,a:Android客户端, w: 网页]
sign true string 签名

返回格式说明:

{
    "errorCode": "0",
    "errorMessage": "成功"
    "data":{
          "appId": "769_002",
          "openId": "aaabbb",
          "unionId": "asd123",
           "sid": "111"
           }
}
{
    "errorCode": "42015",
    "errorMessage": "未注册"
    "data":{
          "appId": "769_002",
          "openId": "aaabbb",
          "unionId": "cdnsifbeiu",
           "sid": ""
           }
}
{
    "errorCode": "42026",
    "errorMessage": "OpenId错误"
}
{
    "errorCode": "40001",
    "errorMessage": "解密错误"
}
{
    "errorCode": "42018",
    "errorMessage": "unionId错误"
}

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


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