bug
jiangqs
2023-08-31 dbff53150cdc807faa56c0d1a947d24b69f372b9
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/config/WxCpConfiguration.java
@@ -34,19 +34,18 @@
        wxCpConfigStorage.setCorpId(properties.getCorpId());
        wxCpConfigStorage.setAgentId(properties.getAgentId());
        wxCpConfigStorage.setCorpSecret(properties.getAgentSecret());
        wxCpConfigStorage.setAesKey(properties.getEncodingAESKey());
        wxCpConfigStorage.setToken(properties.getToken());
        WxCpService wxService = new WxCpServiceImpl();
        wxService.setWxCpConfigStorage(wxCpConfigStorage);
        return wxService;
    }
    @Bean
    @ConditionalOnMissingBean
    public WxCryptUtil wxCryptUtil() {
        WxCryptUtil wxCryptUtil = new WxCryptUtil("", "", properties.getCorpId());
        WxCryptUtil wxCryptUtil = new WxCryptUtil(properties.getToken(), properties.getEncodingAESKey(), properties.getCorpId());
        return wxCryptUtil;
    }
}