Browse Source

取消每个用户只能领一张限制

Chris-zy 1 year ago
parent
commit
e16e2a4bf6

+ 2 - 2
mp-admin/src/main/java/com/qs/mp/web/controller/api/user/UserTicketOrderController.java

@@ -228,13 +228,13 @@ public class UserTicketOrderController extends BaseApiController {
             return AjaxResult.error("盲票已停售!");
         }
         //免费的盲票每个用户只能领取一次
-        if (orderSettleVO.getPayAmt() == 0 && orderSettleVO.getDiscountAmt() == 0){
+        /*if (orderSettleVO.getPayAmt() == 0 && orderSettleVO.getDiscountAmt() == 0){
             int orderCount = userTicketOrderService.count(
                     new LambdaQueryWrapper<UserTicketOrder>().eq(UserTicketOrder::getUserId, userId).eq(UserTicketOrder::getBoxId, orderSettleVO.getBoxId()));
             if (orderCount > 0) {
                 return AjaxResult.error("您已领取过盲票!");
             }
-        }
+        }*/
         //限制前端重复提交请求
         String repeatSubmitRecord = redisCache.getCacheObject(repeatSubmitKey);
         if (StringUtils.isNotBlank(repeatSubmitRecord)) {