| | |
| | | exchangeTip.setInviteCode(extraVO.getInviteCode());
|
| | | exchangeTip.setTip("兑换成功后,将发布于“激活邀请码兑换功能中”,需激活邀请的用户可用金币兑换,本次展示有效期为3天。");
|
| | | } else if (ExchangeTypeEnum.taoLiJin == type) {
|
| | | exchangeTip.setName(exchange.getAmount() + "元推广红包");
|
| | | exchangeTip.setName(exchange.getAmount().setScale(0) + "元推广红包");
|
| | | exchangeTip.setTip("注:兑换成功后请到“我的-推广红包”中查看");
|
| | | } else if (ExchangeTypeEnum.cash == type) {
|
| | | exchangeTip.setName(exchange.getAmount() + "元现金红包");
|
| | | exchangeTip.setName(exchange.getAmount().setScale(0) + "元现金红包");
|
| | | exchangeTip.setTip("注:兑换成功后请到“我的-账户余额”中查看");
|
| | | } else {
|
| | | throw new IntegralExchangeException(1, "兑换方式不存在");
|
| | |
| | | thing = "奖励免单券";
|
| | | userSystemCouponService.exchangeCoupon(uid, type.name(), UserSystemCoupon.SOURCE_EXCHANGE, new BigDecimal(10));
|
| | | } else if (ExchangeTypeEnum.inviteCodePublish == type) {
|
| | | thing = "邀请码激活卡";
|
| | | thing = "邀请码发布卡";
|
| | | if(codePublishRecordService.countValidRecord(uid) > 0)
|
| | | throw new IntegralExchangeException(1, "三天之内不可重复兑换");
|
| | | codePublishRecordService.publishInviteCode(uid);
|
| | |
| | | throw new IntegralExchangeException(1, "兑换异常");
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | |
|
| | | @Override
|