diff --git a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java index 29d578b..c55b57c 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java @@ -123,6 +123,8 @@ public class MyController extends BaseController { UserInfo myInvitationUser = userInfoService.findById(invitationUserId); userRespDTO.setInvitationUserId(myInvitationUser.getId()); userRespDTO.setInvitationCode(myInvitationUser.getInvitationCode()); + } else { + userRespDTO.setInvitationCode(null); } if (null != user.getEnableNotice()) {