...
|
...
|
@@ -58,8 +58,9 @@ const wechat = { |
|
|
if (err) {
|
|
|
return next(err);
|
|
|
}
|
|
|
let nickname = user.nickname;
|
|
|
let openId = user.unionid || user.openid;
|
|
|
console.log(user);
|
|
|
let nickname = user.displayName || user._json.nickname;
|
|
|
let openId = user.id || user._json.unionid;
|
|
|
|
|
|
doPassportCallback(openId, nickname, req, res);
|
|
|
})(req, res, next);
|
...
|
...
|
|