fix: 返回邀请码

This commit is contained in:
chaosBreaking
2019-09-08 00:32:51 +08:00
parent 44b30decdf
commit 28ed4bd47d

View File

@@ -8,7 +8,7 @@ module.exports = {
changePwd, changePwd,
async getUserInfo (req, res) { async getUserInfo (req, res) {
const { userId } = res.locals.user; const { userId } = res.locals.user;
User.findById(userId, 'id nickname phone').then(data => { return User.findById(userId, 'id nickname phone inviteCode').then(data => {
res.json({ res.json({
code: 0, code: 0,
msg: 'success', msg: 'success',