refactor(service): 简化交易备注中的固定前缀文案
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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. 记录充值成功日志
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user