执行微信登录

简要描述:

  • 性能优化使用,不用阻塞等待调用,替代第三步,本接口建议2S定时请求一次查询登录状态,且扫码后(未点击确认登录)立即返回头像+昵称,确认登录后则所有参数全部返回

请求URL:

  • http://域名地址/simpleIPadLoginInfo

请求方式:

  • POST

请求头Headers:

  • Content-Type:application/json
  • Authorization:login接口返回

参数:

参数名 必选 类型 说明
wId string 微信实例ID

返回数据:

参数名 类型 说明
code string 1000成功,1001失败
msg string 反馈信息
data
wcId string 微信号
nickName string 昵称
headUrl string 头像url
wAccount string 手机上显示的微信号
sex int 性别
mobilePhone string 绑定手机
status string 保留字段

请求参数示例

{
  "wId": "59c7a5b1-3c01-480c-828c-46eade762287",
  "cdnUrl": "307f02010004783076020100020464e5eb6502033d14b90204ac612fb70204611399240451777875706c6f61645f7a68616e67636875616e32323838584d755078697958744f5f313632383637343334305f34656464666331302d613337622d343439382d393934372d6431663230333633376237640204011818020201000400",
  "aeskey": "4eddfc10-a37b-4498-9947-d1f203637b7d",
  "fileType":3,
  "fileName": "test.jpg"
}

成功返回示例

{
    "code": "1000",
    "message": "处理成功",
    "data": {
        "country": "CN",
        "wAccount": "hi1212",
        "city": "",
        "signature": "我的签名如风一样难以琢磨",
        "nickName": "贝塔同学",
        "sex": 2,
        "headUrl": "http://wx.qlogo.cn/mmhead/ver_1/EImpg1FWcIdhPg3zRAnkVdVdV2hic1Mib7zZ9mLTwhv5QzhNrdTCL0nKAsOgiaRrJmQwrXnBY7c1QNDo4aNc8niaicYuQpLPbJqyaJ6sKjlm5mKY/0",
        "type": 2,
        "smallHeadImgUrl": "http://wx.qlogo.cn/mmhead/ver_1/EImpg1FWcIdhPg3zRAnkVdVdV2hic1Mib7zZ9mLTwhv5QzhNrdTCL0nKAsOgiaRrJmQwrXnBY7c1QNDo4aNc8niaicYuQpLPbJqyaJ6sKjlm5mKY/132",
        "wcId": "wxid_ylxtxxg0p8bx22",
        "wId": "25d50610-1a82-4531-b9db-dd80c5a3c14a",
        "mobilePhone": "19822121231",
        "status": 3,
        "username": "18013350963"
    }
}

错误返回示例

{
    "message": "失败",
    "code": "1001",
    "data": null
}
Copyright © wkteam.cn 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-10-21 20:15:49

results matching ""

    No results matching ""