Authored by ccbikai

删除 console.log

... ... @@ -64,7 +64,6 @@ const wechat = {
next();
},
login: (req, res, next) => {
console.log('1');
return passport.authenticate('weixin', {
state: uuid.v4()
})(req, res, next);
... ... @@ -75,7 +74,6 @@ const wechat = {
log.error(`wechat authenticate error : ${JSON.stringify(err)}`);
return res.redirect(loginPage);
}
console.log(user);
let nickname = user._json.nickname || user.displayName;
let openId = user._json.unionid || user.id;
... ...