From 801418bedca56d718c851d0c927d56cc89e89211 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期五, 23 八月 2019 15:23:51 +0800 Subject: [PATCH] 兑换 --- fanli/src/main/java/com/yeshi/fanli/service/impl/integral/IntegralExchangeServiceImpl.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 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 cec6d33..bc13ae2 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 @@ -218,12 +218,13 @@ String thing = ""; String thingNum = ""; int couponNews = 0; + boolean once = false; // 鍏戞崲涓�娆℃槸鍚︽秷澶� try { if (ExchangeTypeEnum.freeCouponBuy == type) { thing = "鑷喘鍏嶅崟鍒�"; thingNum = "1寮�"; userSystemCouponService.exchangeCoupon(uid, type.name(), UserSystemCoupon.SOURCE_EXCHANGE, null); - + once = true; couponNews = 1; } else if (ExchangeTypeEnum.freeCouponGive == type) { thing = "璧犻�佸厤鍗曞埜"; @@ -317,6 +318,10 @@ } }); + if (once) // 鍏戞崲涔嬪悗娑堝け + exchange = null; + + return exchange; } catch (Exception e) { LogHelper.errorDetailInfo(e); -- Gitblit v1.8.0