From 70d2a5d0f9c6951b2d4cac954041ed73582ff7eb Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 09 六月 2025 11:54:00 +0800
Subject: [PATCH] 6.9新增登录失败冻结逻辑

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java
index 9121409..4ccb547 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActUserWalletServiceImpl.java
@@ -7,6 +7,7 @@
 
 import javax.annotation.Resource;
 
+import com.panzhihua.service_community.entity.SysTemplateConfig;
 import org.springframework.beans.BeanUtils;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
@@ -56,6 +57,10 @@
     private ComActEasyPhotoRewardMapper comActEasyPhotoRewardMapper;
     @Resource
     private ComActActSignDAO comActActSignDAO;
+    @Resource
+    private ComActDAO comActDAO;
+    @Resource
+    private SysTemplateConfigDao sysTemplateConfigDao;
 
     /**
      * 查询用户钱包信息
@@ -246,10 +251,12 @@
         Map<String, String> map = comActActSignDAO.getUserOpenId(easyPhotoDO.getSponsorId());
         if (map != null) {
             String openid = map.get("openid");
+            ComActDO comActDO=comActDAO.selectById(easyPhotoDO.getCommunityId());
+            SysTemplateConfig sysTemplateConfig=sysTemplateConfigDao.selectOne(new QueryWrapper<SysTemplateConfig>().lambda().eq(SysTemplateConfig::getAreaCode, comActDO.getAreaCode()).eq(SysTemplateConfig::getType,7));
             WxXCXTempSend util = new WxXCXTempSend();
             try {
-                WxUtil.sendSubscribeJLDZ(openid, util.getAppAccessToken(), "随手拍有奖活动",
-                    amount.setScale(2, RoundingMode.HALF_UP), activityTypeName);
+                WxUtil.sendSubscribeJLDZ(openid, util.getAccessToken(), "随手拍有奖活动",
+                    amount.setScale(2, RoundingMode.HALF_UP), activityTypeName,sysTemplateConfig.getTemplateId());
             } catch (Exception e) {
                 log.error("消息推送失败,失败原因:" + e.getMessage());
             }

--
Gitblit v1.7.1