mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🎨 #3694 统一各模块微信接口请求的基础地址字段命名为apiHostUrl,并完善Spring Boot starter配置支持
This commit is contained in:
@@ -139,6 +139,9 @@ public abstract class AbstractWxCpConfiguration {
|
||||
if (StringUtils.isNotBlank(msgAuditLibPath)) {
|
||||
config.setMsgAuditLibPath(msgAuditLibPath);
|
||||
}
|
||||
if (StringUtils.isNotBlank(wxCpSingleProperties.getBaseApiUrl())) {
|
||||
config.setBaseApiUrl(wxCpSingleProperties.getBaseApiUrl());
|
||||
}
|
||||
}
|
||||
|
||||
private void configHttp(WxCpDefaultConfigImpl config, WxCpMultiProperties.ConfigStorage storage) {
|
||||
|
||||
@@ -43,4 +43,10 @@ public class WxCpSingleProperties implements Serializable {
|
||||
* 微信企业号应用 会话存档类库路径
|
||||
*/
|
||||
private String msgAuditLibPath;
|
||||
|
||||
/**
|
||||
* 自定义企业微信服务器baseUrl,用于替换默认的 https://qyapi.weixin.qq.com
|
||||
* 例如:http://proxy.company.com:8080
|
||||
*/
|
||||
private String baseApiUrl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user