From 89e89fe2b2a1578a94b2e2c8ee81efbfbbf85f08 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期五, 23 八月 2019 14:18:42 +0800 Subject: [PATCH] 兑换邀请码调整 --- fanli/src/main/java/com/yeshi/fanli/service/impl/integral/IntegralExchangeServiceImpl.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/integral/IntegralExchangeServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/integral/IntegralExchangeServiceImpl.java index e63e0cb..cec6d33 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/integral/IntegralExchangeServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/integral/IntegralExchangeServiceImpl.java @@ -367,7 +367,7 @@ @Override - public void exchangeInviteCode(Long uid, Long id) throws IntegralExchangeException { + public String exchangeInviteCode(Long uid, Long id) throws IntegralExchangeException { if (uid == null || uid <= 0) throw new IntegralExchangeException(1, "鐢ㄦ埛鏈櫥褰�"); @@ -401,7 +401,6 @@ throw new IntegralExchangeException(1, "鍏戞崲澶辫触锛岃鐢ㄦ埛閭�璇风爜涓嶅瓨鍦�"); String inviteCode = inviteExtra.getInviteCode(); - userInfoExtraService.activateInviteCode(uid, inviteExtra.getInviteCode()); // 鍓╀綑閲戝竵 int surplus = goldCoinHas.intValue() - goldCoin.intValue(); @@ -442,11 +441,11 @@ userOtherMsgNotificationService.exchangeMsg(uid, beizu, msgOther); } }); + + return inviteCode; } catch (Exception e) { LogHelper.errorDetailInfo(e); throw new IntegralExchangeException(1, "鍏戞崲澶辫触"); } - - } } -- Gitblit v1.8.0