回调中添加自定义充值判断

This commit is contained in:
wuchunlei
2025-06-11 18:08:57 +08:00
parent 28544b80fb
commit ab76486efd
4 changed files with 37 additions and 5 deletions

View File

@@ -218,6 +218,11 @@ public class AliPayServiceImpl implements AliPayService {
// 插入花生币 变动记录
BookBuyConfigEntity bookBuyConfigEntity = bookBuyConfigService.getById(Integer.valueOf(body));
MyUserEntity userEntity = userService.getById(order.getUserId());
if (Integer.valueOf(body)==0){//自定义充值
bookBuyConfigEntity.setRealMoney(order.getRealMoney());
bookBuyConfigEntity.setMoney(order.getRealMoney());
bookBuyConfigEntity.setQudao("Android");
}
//充值送积分
if (bookBuyConfigEntity != null && bookBuyConfigEntity.getGivejf().compareTo(BigDecimal.ZERO)>0) {
userEntity.setJf(userEntity.getJf().add(bookBuyConfigEntity.getGivejf()));