checkSession 老是fail 返回

发布于 7 年前作者 ezhong9264 次浏览最后编辑 7 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

errMsg: “checkSession:fail cgi response is empty”, errCode: -1

  • 预期表现

  • 复现路径

  • 提供一个最简复现 Demo

wx.checkSession({

success: function(res) {

console.log(“checkSession”,res)

getToken(token)

},

fail: function(res) {

console.log(“checkSession”, “fail”, res)

loginPromise().then(function(token) {

getToken(token)

})

}

})

1 回复
yewei
yewei1 楼5 年前