|
|
@ -123,8 +123,6 @@ public class CashCollectionServiceImpl implements CashCollectionService { |
|
|
cashRecord.setPermanentGold(cashCollection.getPermanentGold()); //永久金币 |
|
|
cashRecord.setPermanentGold(cashCollection.getPermanentGold()); //永久金币 |
|
|
cashRecord.setFreeGold(cashCollection.getFreeGold()); //免费金币 |
|
|
cashRecord.setFreeGold(cashCollection.getFreeGold()); //免费金币 |
|
|
cashRecord.setWalletId(cashCollection.getWalletId()); // 钱包 ID |
|
|
cashRecord.setWalletId(cashCollection.getWalletId()); // 钱包 ID |
|
|
// 打印钱包 ID |
|
|
|
|
|
log.info("钱包ID:{}", cashRecord.getWalletId()); |
|
|
|
|
|
cashRecord.setPaymentCurrency(cashCollection.getPaymentCurrency()); //付款币种 |
|
|
cashRecord.setPaymentCurrency(cashCollection.getPaymentCurrency()); //付款币种 |
|
|
cashRecord.setPaymentAmount(cashCollection.getPaymentAmount()); //付款金额 |
|
|
cashRecord.setPaymentAmount(cashCollection.getPaymentAmount()); //付款金额 |
|
|
cashRecord.setReceivedMarket(cashCollection.getReceivedMarket()); //到账地区 |
|
|
cashRecord.setReceivedMarket(cashCollection.getReceivedMarket()); //到账地区 |
|
|
@ -425,6 +423,18 @@ public class CashCollectionServiceImpl implements CashCollectionService { |
|
|
log.info("充值成功:jwcode={}, walletId={}, 增加金币={}", |
|
|
log.info("充值成功:jwcode={}, walletId={}, 增加金币={}", |
|
|
jwcode, walletId, permanentGold); |
|
|
jwcode, walletId, permanentGold); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 创建钱包明细记录 |
|
|
|
|
|
UserWalletRecord walletRecord = new UserWalletRecord(); |
|
|
|
|
|
walletRecord.setJwcode(jwcode); |
|
|
|
|
|
walletRecord.setWalletId(walletId); |
|
|
|
|
|
walletRecord.setType(0); // 0=充值 |
|
|
|
|
|
walletRecord.setAmount(permanentGold); |
|
|
|
|
|
walletRecord.setOrderCode(cashRecord.getOrderCode()); |
|
|
|
|
|
walletRecord.setDescription(dbRecord.getRemark() != null ? dbRecord.getRemark() : "金币充值"); |
|
|
|
|
|
walletRecord.setStatus(0); // 0=正常 |
|
|
|
|
|
cashCollectionMapper.insertUserWalletRecord(walletRecord); |
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
log.error("充值钱包失败:jwcode={}, walletId={}, error={}", |
|
|
log.error("充值钱包失败:jwcode={}, walletId={}, error={}", |
|
|
jwcode, walletId, e.getMessage(), e); |
|
|
jwcode, walletId, e.getMessage(), e); |
|
|
|