fix登录,积分
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user