yujian
2020-01-18 f4a0f2acc63d7785eab108419a4e16f5f688cb95
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);