7.2 第三方和手机号登录ForEdu.md 3.34 KB

请求参数说明:

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

返回格式说明:


{
    "errorCode": "0",
    "errorMessage": "成功",
    "data": {
        "uid":"145xxx",
        "nickName":"xxxx",
        "gender":"f",
        "location":"BeiJing",
        "faceUrl":"http://yweb0.cnliveimg.com/images/headImg/2019/0708/xxxx_small.jpg",
        "mobile":"158xxxxxxxx",
        "countryCode":"86",
        "email":"xxxx@xx.com",
        "extInfo":"asdada",
        "platformId":"",
        "qqUid":"2sssss1",
        "wxUid":"",
        "sinaUid":"",
        "renrenUid":"",
        "hUid":"",
        "token":"+UY41deNFjlseiC2QZxlFG6gNvNYi1J9/tWkG5qxWDRMxqSZPpDceQ==",
        "isNewUser":false,
        "bigFaceUrl":"http://yweb0.cnliveimg.com/images/headImg/2019/0708/xxxx.jpg"
    }
}
{
    "errorCode": "1",
    "errorMessage": "请求参数无效"
}
{
    "errorCode": "41014",
    "errorMessage": "第三方平台编号无效"
}
{
    "errorCode": "41009",
    "errorMsg": "验证码错误"
}
{
    "errorCode": "41010",
    "errorMsg": "手机号无效"
}
{
    "errorCode": "41002",
    "errorMsg": "验证码为6位数字"
}
{
    "errorCode": "41005",
    "errorMsg": "ClientPlat无效"
}
{   "errorCode":"41057", 
    "errorMessage":"该手机号已注册,请直接登录"
}
{
    "errorCode": "40005",
    "errorMessage": "其他错误"
}