| | |
| | | Dict dict = dictRepository.findByName(Constant.WECOM_LEAVE_TYPE); |
| | | |
| | | // 获取企业微信Token |
| | | wxCpService.getAccessToken(); |
| | | wxCpService.getAccessToken(true); |
| | | // 假勤组件需要获取假期相关配置 |
| | | WxCpCorpConfInfo corpConfInfo = wxCpService.getOaService().getCorpConf(); |
| | | List<DictDetail> newDictDetails = corpConfInfo.getLists().stream().map(m -> { |
| | |
| | | public List<String> uploadWecomMediaFile(List<String> filePaths) { |
| | | try { |
| | | // 获取企业微信Token |
| | | wxCpService.getAccessToken(); |
| | | wxCpService.getAccessToken(true); |
| | | |
| | | // 提交临时素材文件 |
| | | return filePaths.stream().map(path -> { |
| | |
| | | } |
| | | |
| | | // 获取企业微信Token |
| | | wxCpService.getAccessToken(); |
| | | wxCpService.getAccessToken(true); |
| | | // 初始化参数 |
| | | WxCpOaApplyEventRequest eventRequest = new WxCpOaApplyEventRequest(); |
| | | |