mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
🎨 【企业微信】配置类增加会话存档路径设置
This commit is contained in:
parent
a6b0b9c191
commit
829df8804b
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -285,6 +285,15 @@ public class WxCpDefaultConfigImpl implements WxCpConfigStorage, Serializable {
|
||||
this.agentId = agentId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置企微会话存档路径.
|
||||
*
|
||||
* @param msgAuditLibPath 会话存档具体路径
|
||||
*/
|
||||
public void setMsgAuditLibPath(String msgAuditLibPath) {
|
||||
this.msgAuditLibPath = msgAuditLibPath;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getOauth2redirectUri() {
|
||||
return this.oauth2redirectUri;
|
||||
|
@ -11,4 +11,6 @@
|
||||
<tagId>企业号通讯录里的某个tagid</tagId>
|
||||
<oauth2redirectUri>网页授权获取用户信息回调地址</oauth2redirectUri>
|
||||
<webhookKey>webhook链接地址的key值</webhookKey>
|
||||
<!-- 企业微信会话存档,windows以及linux环境sdk路径 -->
|
||||
<msgAuditLibPath>/www/osfile/libcrypto-1_1-x64.dll,libssl-1_1-x64.dll,libcurl-x64.dll,WeWorkFinanceSdk.dll,libWeWorkFinanceSdk_Java.so</msgAuditLibPath>
|
||||
</xml>
|
||||
|
Loading…
Reference in New Issue
Block a user