html52.com
我爱小程序-开发者交流社区

怎么一升级 这个玩意就报错了 ? 每次升级都要出一堆问题 腾讯呀腾讯

<button class="weui-btn" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="onGotUserInfo">确认</button>

  //得到用户授权

  onGotUserInfo function

     //用户点击允许授权

    console.log(e.detail.userInfo);


    return;

    



提示这个错误

VM520:1 thirdScriptError

Cannot read property 'detail' of undefined;at api login success callback function

TypeError: Cannot read property 'detail' of undefined

    at be.onGotUserInfo (http://127.0.0.1:55084/appservice/__APP__/appservice.js:5354:19)

    at success (http://127.0.0.1:55084/appservice/__APP__/appservice.js:5337:17)

    at http://127.0.0.1:55084/appservice/appservice?t=1577241553357:9:21250

    at Function.o.<computed> (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:1300810)

    at Object.success (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:125836)

    at b (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:526517)

    at g (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:526760)

    at http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:528150

    at Audit_setTimeout_pages/login/login (http://127.0.0.1:55084/appservice/__dev__/asdebug.js:1:11973)

    at http://127.0.0.1:55084/appservice/appservice?t=1577241553357:9:42005

网友回复

社区技术运营专员-娇华:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付