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:
@@ -48,6 +48,12 @@ public class WxCpProperties {
|
||||
*/
|
||||
private String msgAuditLibPath;
|
||||
|
||||
/**
|
||||
* 自定义企业微信服务器baseUrl,用于替换默认的 https://qyapi.weixin.qq.com
|
||||
* 例如:http://proxy.company.com:8080
|
||||
*/
|
||||
private String baseApiUrl;
|
||||
|
||||
/**
|
||||
* 配置存储策略,默认内存
|
||||
*/
|
||||
|
||||
@@ -37,6 +37,9 @@ public abstract class AbstractWxCpConfigStorageConfiguration {
|
||||
if (StringUtils.isNotBlank(msgAuditLibPath)) {
|
||||
config.setMsgAuditLibPath(msgAuditLibPath);
|
||||
}
|
||||
if (StringUtils.isNotBlank(properties.getBaseApiUrl())) {
|
||||
config.setBaseApiUrl(properties.getBaseApiUrl());
|
||||
}
|
||||
|
||||
WxCpProperties.ConfigStorage storage = properties.getConfigStorage();
|
||||
String httpProxyHost = storage.getHttpProxyHost();
|
||||
|
||||
Reference in New Issue
Block a user