【优化】SYSTEM: 根据代码评审优化订阅消息

This commit is contained in:
puhui999
2024-07-30 12:22:06 +08:00
parent f10840afb8
commit ab4e10ccf8
2 changed files with 5 additions and 5 deletions

View File

@ -145,9 +145,9 @@ public class PayWalletRechargeServiceImpl implements PayWalletRechargeService {
@Async
public void sendPayWalletChangeMessage(Long payOrderId, PayWalletRechargeDO walletRecharge) {
// 1. 获得会员钱包信息
// 1.1 获得会员钱包信息
PayWalletDO wallet = payWalletService.getWallet(walletRecharge.getWalletId());
// 2. 构建并发送模版消息
// 1.2 构建并发送模版消息
socialClientApi.sendSubscribeMessage(new SocialWxSubscribeMessageSendReqDTO().setPage(WALLET_MONEY_PATH)
.setUserId(wallet.getUserId()).setUserType(wallet.getUserType()).setTemplateTitle(PAY_WALLET_CHANGE)
.setSocialType(SocialTypeEnum.WECHAT_MINI_APP.getType())