BAOLH
2025-09-28 90748f8108f1e916791da729a687e322e54dac3e
企微通信redis锁问题修改
1 files modified
10 ■■■■■ changed files
eladmin-master/eladmin-system/src/main/java/me/zhengjie/config/WxCpConfig.java 10 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/config/WxCpConfig.java
@@ -33,9 +33,17 @@
//        // 默认缓存配置
//        WxCpDefaultConfigImpl configStorage = new WxCpDefaultConfigImpl();
        WxCpDefaultConfigImpl configStorage;
        if (wxCpProperties.getConfigStorage().getType().equals(WxCpProperties.StorageType.redistemplate)) {
        // redis缓存配置
        StringRedisTemplate redisTemplate = applicationContext.getBean(StringRedisTemplate.class);
        WxCpDefaultConfigImpl configStorage = new WxCpRedisTemplateConfigImpl(redisTemplate, wxCpProperties.getConfigStorage().getKeyPrefix());
            configStorage = new WxCpRedisTemplateConfigImpl(redisTemplate, wxCpProperties.getConfigStorage().getKeyPrefix());
        } else {
            // 默认配置
            configStorage = new WxCpDefaultConfigImpl();
        }
        // 基本配置
        configStorage.setCorpId(wxCpProperties.getCorpId());
        configStorage.setAgentId(wxCpProperties.getAgentId());
        configStorage.setCorpSecret(wxCpProperties.getCorpSecret());