| | |
| | | } |
| | | |
| | | // 计算积分值 |
| | | Integer basePoints = pointsRule.getPointsValue() != null ? pointsRule.getPointsValue() : 0; |
| | | Integer basePoints = 0; //pointsRule.getPointsValue() != null ? pointsRule.getPointsValue() : 0; |
| | | Integer totalPoints = basePoints * count; |
| | | |
| | | // 如果是消费类型,积分为负数 |
| | |
| | | } |
| | | |
| | | // 检查每日积分上限 |
| | | if (basePoints > 0 && pointsRule.getPriority() != null && pointsRule.getPriority() > 0) { |
| | | checkDailyLimit(userId, unitId, ruleName, totalPoints, pointsRule.getPriority()); |
| | | if (basePoints > 0) { |
| | | checkDailyLimit(userId, unitId, ruleName, totalPoints, 0); |
| | | } |
| | | |
| | | // 创建积分流水记录 |