fix登录,积分

This commit is contained in:
wells
2026-08-08 10:44:01 +08:00
parent dc33b8008c
commit 0e51812d80
10 changed files with 70 additions and 26 deletions
@@ -61,11 +61,9 @@ public class RedPacketServiceImpl implements IRedPacketService {
}
// 扣积分
boolean success = pointsService.subPoints(userId, totalAmount.longValue(),
pointsService.subPoints(userId, totalAmount.longValue(),
IPointsService.TYPE_RP_SEND, null, null, "发送红包");
if (!success) {
throw new RuntimeException("余额不足");
}
// 创建红包
RedPacket rp = new RedPacket();
@@ -275,7 +273,8 @@ public class RedPacketServiceImpl implements IRedPacketService {
try {
List<BigDecimal> amounts = objectMapper.readValue(rp.getShareAmounts(),
new TypeReference<List<BigDecimal>>() {});
new TypeReference<List<BigDecimal>>() {
});
if (amounts.isEmpty()) {
return calculateReceiveAmount(rp);
}