| | |
| | | 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; |
| | | } |
| | | } |