fix: 返回邀请码
This commit is contained in:
@@ -8,7 +8,7 @@ module.exports = {
|
||||
changePwd,
|
||||
async getUserInfo (req, res) {
|
||||
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({
|
||||
code: 0,
|
||||
msg: 'success',
|
||||
|
||||
Reference in New Issue
Block a user