From b59fef5c00b15fdfdfa9d4be26e5bf6b41c75458 Mon Sep 17 00:00:00 2001 From: admin <2780501319@qq.com> Date: 星期日, 23 二月 2020 00:16:52 +0800 Subject: [PATCH] 2.0.7相关服务端功能添加 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserLotteryRecordServiceImpl.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserLotteryRecordServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserLotteryRecordServiceImpl.java index ef9aec2..3f56d12 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserLotteryRecordServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserLotteryRecordServiceImpl.java @@ -14,6 +14,7 @@ import com.yeshi.fanli.entity.bus.user.UserInfoExtra; import com.yeshi.fanli.entity.bus.user.UserLotteryRecord; import com.yeshi.fanli.entity.bus.user.UserSystemCoupon; +import com.yeshi.fanli.entity.system.ConfigKeyEnum; import com.yeshi.fanli.entity.system.SystemCoupon; import com.yeshi.fanli.entity.system.SystemCoupon.CouponTypeEnum; import com.yeshi.fanli.exception.user.UserInfoExtraException; @@ -128,7 +129,7 @@ } // 鎶藉瑙勫垯 - String lotteryRule = configService.get("lottery_rule_newbies"); + String lotteryRule = configService.get(ConfigKeyEnum.lotteryRuleNewbies.getKey()); JSONObject data = new JSONObject(); data.put("count", count); @@ -196,7 +197,7 @@ prize = "NoPrize"; } else { try { - userSystemCouponService.insertUserCoupon(uid, prize, UserSystemCoupon.SOURCE_NEWBIES, null); + userSystemCouponService.insertUserCoupon(uid, prize, UserSystemCoupon.SOURCE_NEWBIES, null,true); } catch (UserSystemCouponException e) { e.printStackTrace(); } catch (Exception e) { @@ -289,7 +290,7 @@ } // 鎶藉瑙勫垯 - String lotteryRule = configService.get("lottery_rule_daily_rebate"); + String lotteryRule = configService.get(ConfigKeyEnum.lotteryRuleDailyRebate.getKey()); JSONObject data = new JSONObject(); data.put("count", count); -- Gitblit v1.8.0