Skip to content
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

建议微信接口地址可配置化 #1039

Closed
xiaweinixxw opened this issue May 10, 2019 · 5 comments
Closed

建议微信接口地址可配置化 #1039

xiaweinixxw opened this issue May 10, 2019 · 5 comments

Comments

@xiaweinixxw
Copy link

基于以下考虑:部分企业网络配置,应用服务器无法直接访问外网,访问微信接口地址时需要做防火墙映射成内网地址进行访问。建议将微信接口地址做成可配置化。

@fcfc20050545
Copy link

你的这种场景,直接在你内网做微信域名解析到你的内网地址不就可以了。这样你的网络环境调整了,调整你的解析,不然服务多了还要去各个服务改这个接口地址

@apple0407
Copy link

问题是哪天WeChat改了接口Api的地址,又不能配置,怎么破,要等官方出新版本重新编译程序再上线吗?
所以个人也认为接口地址可配置化,如果没配置,再使用默认地址。

@fcfc20050545
Copy link

WeChat改api地址是不可能的,域名修改不可能,具体api路径修改更加不可,它作为一个第三方提供商,修改接口地址这种操作对用户带来对影响是巨大的。最极端的做法他是会废弃旧接口A,就是不提供更新,然后开放一个新接口A1。那时候你用它的新接口新功能你再用新的api。

@binarywang
Copy link
Member

binarywang commented Jun 5, 2019

企业微信有私有化部署的场景,已经在#1065 实现。
其他模块是否有必要,待商榷

@binarywang
Copy link
Member

3.4.3.B 版本已增加公众号可配置接口请求域名地址的支持,具体参考 me.chanjar.weixin.mp.api.WxMpConfigStorage#getHostConfig 方法,如果需要,请实现该接口自行设置相关参数即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants