yujian
2019-09-03 d1dccd08a249b830a95eeeb04af25f87d5c056be
fanli/src/main/java/com/yeshi/fanli/service/impl/integral/IntegralExchangeServiceImpl.java
@@ -232,17 +232,20 @@
            userSystemCouponService.exchangeCoupon(uid, type.name(), UserSystemCoupon.SOURCE_EXCHANGE, null);
            couponNews = 1;
         } else if (ExchangeTypeEnum.rebatePercentCoupon == type) {
            thing = "奖励免单券";
            thingNum = "3天";
            thing = "返利奖励券";
            thingNum = "1张";
            String percent = configService.get("exchange_rebate_percent");
            userSystemCouponService.exchangeCoupon(uid, type.name(), UserSystemCoupon.SOURCE_EXCHANGE, new BigDecimal(percent));
            couponNews = 1;
         } else if (ExchangeTypeEnum.inviteCodePublish == type) {
            thing = "邀请码发布卡";
            thingNum = "1组";
            thingNum = "3天";
            if(codePublishRecordService.countValidRecord(uid) > 0)
               throw new IntegralExchangeException(1, "三天之内不可重复兑换");
            codePublishRecordService.publishInviteCode(uid);
            exchange.setNeedJump(true);
            exchange.setBtnName("去查看");
         } else if (ExchangeTypeEnum.taoLiJin == type) {
            thing = "推广红包";
            thingNum = exchange.getAmount() + "元";
@@ -320,7 +323,6 @@
         
         if (once) // 兑换之后消失
            exchange = null;
         
         return exchange;
      } catch (Exception e) {