🎨 【企业微信】配置类增加会话存档路径设置
This commit is contained in:
@@ -7,7 +7,7 @@ import org.apache.commons.lang3.StringUtils;
|
||||
/**
|
||||
* WxCpConfigStorage 抽象配置类
|
||||
*
|
||||
* @author yl
|
||||
* @author yl & Wang_Wong
|
||||
* @date 2021/12/6
|
||||
*/
|
||||
public abstract class AbstractWxCpConfigStorageConfiguration {
|
||||
@@ -18,6 +18,8 @@ public abstract class AbstractWxCpConfigStorageConfiguration {
|
||||
String token = properties.getToken();
|
||||
Integer agentId = properties.getAgentId();
|
||||
String aesKey = properties.getAesKey();
|
||||
// 企业微信,会话存档路径
|
||||
String msgAuditLibPath = properties.getMsgAuditLibPath();
|
||||
|
||||
config.setCorpId(corpId);
|
||||
config.setCorpSecret(corpSecret);
|
||||
@@ -30,6 +32,9 @@ public abstract class AbstractWxCpConfigStorageConfiguration {
|
||||
if (StringUtils.isNotBlank(aesKey)) {
|
||||
config.setAesKey(aesKey);
|
||||
}
|
||||
if (StringUtils.isNotBlank(msgAuditLibPath)) {
|
||||
config.setMsgAuditLibPath(msgAuditLibPath);
|
||||
}
|
||||
|
||||
WxCpProperties.ConfigStorage storage = properties.getConfigStorage();
|
||||
String httpProxyHost = storage.getHttpProxyHost();
|
||||
@@ -50,4 +55,5 @@ public abstract class AbstractWxCpConfigStorageConfiguration {
|
||||
}
|
||||
return config;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user