From 4a2d0d30b1993fa4b3fdd943c93e327124c6cff7 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 12 十二月 2019 13:05:33 +0800 Subject: [PATCH] 测试controller修改 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java index 6f6c493..46c8c13 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java @@ -253,9 +253,13 @@ UserExtraTaoBaoInfo extraInfo = userExtraTaoBaoInfoService.getByUid(uid); UserInfoExtra userExtraInfo = userInfoExtraService.getUserInfoExtra(uid); String inviteCode = null; - if (userExtraInfo != null) - inviteCode = userExtraInfo.getInviteCode(); - + if (userExtraInfo != null) { + if (!StringUtil.isNullOrEmpty(userExtraInfo.getInviteCodeVip())) { + inviteCode = userExtraInfo.getInviteCodeVip(); + } else { + inviteCode = userExtraInfo.getInviteCode(); + } + } String relationId = null; if (extraInfo != null && extraInfo.getRelationId() != null && extraInfo.getRelationValid() != null && extraInfo.getRelationValid() == true) -- Gitblit v1.8.0