Commit ab4e10ccf89cef628acefceda9eda9768a73377e

Authored by puhui999
1 parent f10840af

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

yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/service/wallet/PayWalletRechargeServiceImpl.java
... ... @@ -145,9 +145,9 @@ public class PayWalletRechargeServiceImpl implements PayWalletRechargeService {
145 145  
146 146 @Async
147 147 public void sendPayWalletChangeMessage(Long payOrderId, PayWalletRechargeDO walletRecharge) {
148   - // 1. 获得会员钱包信息
  148 + // 1.1 获得会员钱包信息
149 149 PayWalletDO wallet = payWalletService.getWallet(walletRecharge.getWalletId());
150   - // 2. 构建并发送模版消息
  150 + // 1.2 构建并发送模版消息
151 151 socialClientApi.sendSubscribeMessage(new SocialWxSubscribeMessageSendReqDTO().setPage(WALLET_MONEY_PATH)
152 152 .setUserId(wallet.getUserId()).setUserType(wallet.getUserType()).setTemplateTitle(PAY_WALLET_CHANGE)
153 153 .setSocialType(SocialTypeEnum.WECHAT_MINI_APP.getType())
... ...
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/social/SocialClientServiceImpl.java
... ... @@ -290,9 +290,9 @@ public class SocialClientServiceImpl implements SocialClientService {
290 290 /**
291 291 * 构建发送消息请求参数
292 292 *
293   - * @param openId 接收者(用户)的 openid
294   - * @param path 点击模板卡片后的跳转页面,仅限本小程序内的页面
295   - * @param template 订阅模版
  293 + * @param reqDTO 请求
  294 + * @param templateId 模版编号
  295 + * @param openId 会员 openId
296 296 * @return 微信小程序订阅消息发送
297 297 */
298 298 private WxMaSubscribeMessage buildMessageSendReqDTO(SocialWxSubscribeMessageSendReqDTO reqDTO,
... ...