回调中添加自定义充值判断
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user