WePush
WePush copied to clipboard
希望支持私有化部署的企业微信
在本项目使用的weixin-java-cp-4.1.0.jar -> me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl.class:50
中存在如下代码:
if (this.baseApiUrl == null) { this.baseApiUrl = "https://qyapi.weixin.qq.com"; }
默认是直接调用腾讯官方的企业微信服务器,但是企业微信支持私有化部署,当私有化部署时此域名会发生变化
我在本项目的 com.fangxuele.tool.push.logic.msgsender.WxCpMsgSender 第89行 增加configStorage.setBaseApiUrl("https://myserver.host.com/"); 测试后验证通过,推送功能正常
希望作者能将此功能加入设置的配置项中,兼容官方企业微信和私有化部署版企业微信的推送功能。