jiangping
2024-07-18 64a6a81753abfc712b1ab384de0f7afb87f4fb23
server/service/src/main/java/com/doumee/core/wx/wxPlat/WxPlatConfig.java
@@ -25,21 +25,9 @@
    @Autowired
    private SystemDictDataBiz systemDictDataBiz;
    @Bean
//    @Bean
    public WxMpConfigStorage wxMpConfigStorage() {
        WxMpDefaultConfigImpl configStorage = new WxMpDefaultConfigImpl();
        try {
            // 公众号appId
            configStorage.setAppId(systemDictDataBiz.queryByCode(Constants.WX_PLATFORM,Constants.WX_PLATFORM_APPID).getCode());
            // 公众号appSecret
            configStorage.setSecret(systemDictDataBiz.queryByCode(Constants.WX_PLATFORM,Constants.WX_PLATFORM_SECRET).getCode());
            // 公众号Token
            configStorage.setToken(systemDictDataBiz.queryByCode(Constants.WX_PLATFORM,Constants.WX_PLATFORM_ACCESS_TOKEN).getCode());
            // 公众号EncodingAESKey
//        configStorage.setAesKey();
        }catch (Exception e){
            log.error("读取微信小程序相关配置错误========"+e.getMessage());
        }
        return configStorage;
    }