mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-19 03:30:06 +08:00
【优化】SYSTEM: 根据代码评审优化订阅消息
This commit is contained in:
parent
f10840afb8
commit
ab4e10ccf8
@ -145,9 +145,9 @@ public class PayWalletRechargeServiceImpl implements PayWalletRechargeService {
|
|||||||
|
|
||||||
@Async
|
@Async
|
||||||
public void sendPayWalletChangeMessage(Long payOrderId, PayWalletRechargeDO walletRecharge) {
|
public void sendPayWalletChangeMessage(Long payOrderId, PayWalletRechargeDO walletRecharge) {
|
||||||
// 1. 获得会员钱包信息
|
// 1.1 获得会员钱包信息
|
||||||
PayWalletDO wallet = payWalletService.getWallet(walletRecharge.getWalletId());
|
PayWalletDO wallet = payWalletService.getWallet(walletRecharge.getWalletId());
|
||||||
// 2. 构建并发送模版消息
|
// 1.2 构建并发送模版消息
|
||||||
socialClientApi.sendSubscribeMessage(new SocialWxSubscribeMessageSendReqDTO().setPage(WALLET_MONEY_PATH)
|
socialClientApi.sendSubscribeMessage(new SocialWxSubscribeMessageSendReqDTO().setPage(WALLET_MONEY_PATH)
|
||||||
.setUserId(wallet.getUserId()).setUserType(wallet.getUserType()).setTemplateTitle(PAY_WALLET_CHANGE)
|
.setUserId(wallet.getUserId()).setUserType(wallet.getUserType()).setTemplateTitle(PAY_WALLET_CHANGE)
|
||||||
.setSocialType(SocialTypeEnum.WECHAT_MINI_APP.getType())
|
.setSocialType(SocialTypeEnum.WECHAT_MINI_APP.getType())
|
||||||
|
@ -290,9 +290,9 @@ public class SocialClientServiceImpl implements SocialClientService {
|
|||||||
/**
|
/**
|
||||||
* 构建发送消息请求参数
|
* 构建发送消息请求参数
|
||||||
*
|
*
|
||||||
* @param openId 接收者(用户)的 openid
|
* @param reqDTO 请求
|
||||||
* @param path 点击模板卡片后的跳转页面,仅限本小程序内的页面
|
* @param templateId 模版编号
|
||||||
* @param template 订阅模版
|
* @param openId 会员 openId
|
||||||
* @return 微信小程序订阅消息发送
|
* @return 微信小程序订阅消息发送
|
||||||
*/
|
*/
|
||||||
private WxMaSubscribeMessage buildMessageSendReqDTO(SocialWxSubscribeMessageSendReqDTO reqDTO,
|
private WxMaSubscribeMessage buildMessageSendReqDTO(SocialWxSubscribeMessageSendReqDTO reqDTO,
|
||||||
|
Loading…
Reference in New Issue
Block a user