yujian
2019-03-06 d49287202635214ca9f9aba80f4e242b7f77d0a3
抽奖规则  代码bug修改
1个文件已修改
7 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/UserCouponController.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/UserCouponController.java
@@ -546,7 +546,7 @@
                
                if (list == null || list.size() == 0) {
                    // 抽奖
                    prize = getLotteryPrize(Constant.MAX_COUNT_LOTTERY_NEWBIES, 0, countUsed, couponType);
                    prize = getLotteryPrize(Constant.MAX_COUNT_LOTTERY_NEWBIES, countPrize , countUsed, couponType);
                    
                } else if (list.size() == 1) {
                    UserSystemCoupon userSystemCoupon = list.get(0);
@@ -558,8 +558,11 @@
                        couponType = coupon.getType().name();
                    }
                    
                    // 拥有奖品数量
                    countPrize = 1;
                    // 抽奖
                    prize = getLotteryPrize(Constant.MAX_COUNT_LOTTERY_NEWBIES, 0, countUsed, couponType);
                    prize = getLotteryPrize(Constant.MAX_COUNT_LOTTERY_NEWBIES, countPrize, countUsed, couponType);
                }
                // 抽中