6.2苹果登录for WJJ.md 3.07 KB

请求参数说明:

参数 必选 类型 说明
appId true string 应用ID
thirdPartyPlat true int 第三方平台编号 [platform : 1:sina 2:qq 3:weixin 4:renren 5:apple]
thirdPartyId true string 第三方用户ID
[qq: 建议使用openid, wx: 建议使用unionid, sina: 建议使用idstr];
注意:同一用户在登录Sp下不同app时,thirdPartyId必须相同
nickName false string 用户昵称
gender false string 性别,m:男、f:女、n:未知
location false string 用户所在地
faceUrl false string 头像,约100*100
uuid true string 设备ID
frmId false string 渠道ID
clientPlat true string 客户端平台[i:IOS客户端,a:Android客户端, w: 网页]
sign true string 签名

返回格式说明:


{
    "errorCode": "0",
    "errorMessage": "成功",
    "data": {
        "uid": "10761743",
        "nickName": "addaa",
        "gender": "n",
        "location": "BeiJing",
        "faceUrl": "https://img.shineup.com.cn/goldenline/head.png",
        "mobile": "",
        "countryCode": "86",
        "email": "",
        "extInfo": "",
        "platformId": "802_k8ho7qks68",
        "qqUid": "",
        "wxUid": "",
        "sinaUid": "",
        "renrenUid": "",
        "hUid": "",
        "appleUid": "cfadn111000is11",
        "token": "4cUNcPrsedgdlABgoUtm7C1KNt+rBQAJsA8ITyKDoUwGocnyXABFkHmmJyhKGpkj",
        "isNewUser": true,
        "newAccount": false,
        "wjjStatus": {
            "personStatus": 0,
            "institutionStatus": 0
        },
        "bigFaceUrl": "https://img.shineup.com.cn/goldenline/head.png"
    }
}
{
    "errorCode": "1",
    "errorMessage": "请求参数无效"
}
{
    "errorCode": "41014",
    "errorMessage": "第三方平台编号无效"
}
{
    "errorCode": "41005",
    "errorMsg": "ClientPlat无效"
}
{
    "errorCode": "41013",
    "errorMessage": "性别无效"
}
{
    "errorCode": "41015",
    "errorMessage": "地址不能超过120个汉字"
}
{
    "errorCode": "41016",
    "errorMessage": "头像不能超过255位"
}
{
    "errorCode": "41008",
    "errorMessage": "该昵称已存在"
}
{
    "errorCode": "40005",
    "errorMessage": "其他错误"
}