refactor(service): 简化交易备注中的固定前缀文案

This commit is contained in:
2026-04-09 13:49:56 +08:00
parent cdfeace2f1
commit 9b4819900d
3 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ public class GooglePlayWalletBenefitService {
wallet.setUpdatedAt(new Date()); wallet.setUpdatedAt(new Date());
walletService.saveOrUpdate(wallet); walletService.saveOrUpdate(wallet);
walletTransactionService.createTransaction(userId, orderId, amount, GOOGLE_PLAY_WALLET_TX_TYPE, walletTransactionService.createTransaction(userId, orderId, amount, GOOGLE_PLAY_WALLET_TX_TYPE,
before, after, "Google Play 充值: " + productId); before, after, productId);
} }
public boolean revoke(Long userId, Long orderId, BigDecimal amount) { public boolean revoke(Long userId, Long orderId, BigDecimal amount) {

View File

@@ -783,7 +783,7 @@ public class ApplePurchaseServiceImpl implements ApplePurchaseService {
(short) 2, // 交易类型2-苹果内购充值 (short) 2, // 交易类型2-苹果内购充值
before, before,
after, after,
"Apple 充值: " + product.getProductId() product.getProductId()
); );
// 8. 记录充值成功日志 // 8. 记录充值成功日志

View File

@@ -133,7 +133,7 @@ public class KeyboardThemePurchaseServiceImpl extends ServiceImpl<KeyboardThemeP
(short) 1, // 交易类型1-购买主题 (short) 1, // 交易类型1-购买主题
beforeBalance, // 交易前余额 beforeBalance, // 交易前余额
afterBalance, // 交易后余额 afterBalance, // 交易后余额
"购买主题: " + theme.getThemeName() // 交易备注 theme.getThemeName() // 交易备注
); );
// 8. 更新购买记录的交易ID // 8. 更新购买记录的交易ID