Authored by 郝肖肖

'wx-undefined'

... ... @@ -64,7 +64,8 @@ function doPassportCallback(openId, nickname, sourceType, req, res) {
return res.redirect(redirectTo);
});
} else {
return Promise.reject('missing third party login openId or nickname');
log.error(`missing third party login openId or nickname, url:${req.url}`);
return res.redirect(loginPage);
}
}
... ...
... ... @@ -15,7 +15,7 @@ module.exports = function() {
let _appId, _timestamp, _nonceStr, _signature;
if (!wx) {
if (typeof wx === 'undefined') {
return;
}
... ...