收藏
回答

小程序获取总是报openid错误怎么搞,求救

总是偶发性的报下面错误,怎么搞!!!求救

VM15942:1 thirdScriptError
Cannot read property 'openid' of undefined;at pages/index/index onLoad function;at api request success callback function
TypeError: Cannot read property 'openid' of undefined
    at success (http://127.0.0.1:20272/appservice/pages/index/index.js:32:50)
    at Function.function.u.(anonymous function) (http://127.0.0.1:20272/appservice/__dev__/WAService.js:5:26985)
    at Object.success (http://127.0.0.1:20272/appservice/__dev__/WAService.js:5:3530)
    at s.<anonymous> (http://127.0.0.1:20272/appservice/__dev__/WAService.js:13:22198)
    at s.emit (http://127.0.0.1:20272/appservice/__dev__/WAService.js:7:14391)
    at Function.<anonymous> (http://127.0.0.1:20272/appservice/__dev__/WAService.js:13:23534)
    at http://127.0.0.1:20272/appservice/__dev__/WAService.js:6:17573
    at a (http://127.0.0.1:20272/appservice/appservice?t=1530603174244:1033:7423)
    at b.<anonymous> (http://127.0.0.1:20272/appservice/appservice?t=1530603174244:1033:7510)
    at b.emit (http://127.0.0.1:20272/appservice/appservice?t=1530603174244:1033:22796)


回答关注问题邀请回答
收藏

2 个回答

  • Cc
    Cc
    2018-08-08

    没有判断session_key每次都重新获取openid导致

    2018-08-08
    有用 3
    回复
  • 摇曳着的风铃
    摇曳着的风铃
    发表于移动端
    2022-03-03
    请问怎么解决这个问题!请指教,谢谢🙏
    2022-03-03
    有用
    回复
登录 后发表内容