admin
2021-06-24 df4441322e9801c102299451da41d7c40b4502e9
service-daylucky/src/main/java/com/ks/daylucky/service/impl/AlipayTemplateMsgManager.java
@@ -35,13 +35,15 @@
        //如果是中奖消息要发送模板消息
        UserInfo userInfo = userInfoService.getUserDetail(uid);
        AppInfo appInfo = appManager.getAppDetail(userInfo.getAppId());
        String templateId = appConfigService.getConfigCache(userInfo.getAppId(), ConfigKeyEnum.luckyResultMsgTemplateId, null).getValue();
        try {
            String templateId = appConfigService.getConfigCache(userInfo.getAppId(), ConfigKeyEnum.luckyResultMsgTemplateId, null).getValue();
            AlipayXcxUtil.sendTemplateMsg(AlipayAppUtil.getAlipayAppInfo(appInfo.getAlipayInfo()), templateId, "pages/activity-detail/activity-detail?id=" + activity.getId(), userInfo.getAlipayUid(), null, "恭喜您,中奖了!", ActivityUtil.getActivityDateNumber(activity.getId(), activity.getCreateTime()));
        } catch (AlipayApiException e) {
            e.printStackTrace();
        } catch (AlipayXcxException e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }