1
0
mirror of synced 2025-12-15 11:41:42 +08:00

🎨 【企业微信】配置类增加会话存档路径设置

This commit is contained in:
Wong
2022-04-02 13:22:46 +00:00
committed by binarywang
parent a6b0b9c191
commit 829df8804b
3 changed files with 18 additions and 1 deletions

View File

@@ -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;
}
}