Authored by 郝肖肖

'wx-undefined'

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