收藏
回答

过取个人信息?

返回 nickName"微信用户" 是怎么回事

返回 头像地址 wx.qlogo.cn

https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132

这头像是那来的啊

最后一次编辑于  2021-04-03
回答关注问题邀请回答
收藏

4 个回答

  • 非干病酒,不是悲秋。
    非干病酒,不是悲秋。
    2021-04-03

    给它覆盖了,还是用老的

    if (wx.getUserProfile) {
      Object.defineProperty(wx, 'getUserInfo', {
        configurable: true,
        value: function (callback) {
          if (wx.userInfo) {
            callback.success(wx.userInfo)
            return;
          }
          wx.getUserProfile({
            desc'展示用户信息',
            success(e) {
              let userInfo = {
                type"getuserinfo",
                detail: e
              }
              wx.userInfo = userInfo
              callback.success(userInfo)
            }
          })
        }
      })
    }
    
    2021-04-03
    有用 2
    回复
  • brave
    brave
    2021-04-03

    小程序登录、用户信息相关接口调整说明:https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801

    若认为该回答有用,给回答者点个[ ]

    2021-04-03
    有用 1
    回复 2
  • undefined
    undefined
    2021-04-03

    4月13日起 发布的小程序,获取个人信息使用这个API,尽快改造吧

    https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html

    2021-04-03
    有用
    回复
  • #
    #
    2021-04-03

    微信接口改版了,这种是获取匿名信息

    2021-04-03
    有用
    回复 1
    • 溶解
      溶解
      2021-04-03
      用哪个接口啊
      2021-04-03
      回复
登录 后发表内容
问题标签