-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支持私有安装版企业微信. #1065
支持私有安装版企业微信. #1065
Conversation
通过 wxCpConfigStorage.setBaseApiUrl("http://local_server:port"); 设置私有化部署的企业微信服务地址. 默认值是 https://qyapi.weixin.qq.com , 如果使用默认值,则不需要调用 setBaseApiUrl(baseUrl).
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpAgentService.java
Outdated
Show resolved
Hide resolved
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpOAuth2Service.java
Outdated
Show resolved
Hide resolved
Caused by: java.lang.NullPointerException 这里出错了: 是因为format中有null值吧? |
你代码写错了 |
删除多余的字符
是指定业务代码吗?还是指这一块写的不对? |
看报错信息,像是你里面的代码的问题,具体我没看 |
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTpService.java
Outdated
Show resolved
Hide resolved
的确是,我自己项目中有一个WxCpConfigStorage的实现,getApiUrl返回null了。 |
项目中有接触到客户部署了私有化部署的企业微信,而WxJava中服务地址 https://qyapi.weixin.qq.com 是固定写死的,导致无法使用WxJava。
产品说明见:https://work.weixin.qq.com/server
为此,对项目做了修改,供您参考。
使用方法:
通过 wxCpConfigStorage.setBaseApiUrl("http://local_server:port"); 设置私有化部署的企业微信服务地址.
默认值是 https://qyapi.weixin.qq.com , 如果使用默认值,则不需要调用 setBaseApiUrl(baseUrl).