🆕 #2676 【企业微信】增加家校应用-复学码接口支持

This commit is contained in:
0katekate0
2022-06-05 22:38:00 +08:00
committed by GitHub
parent 6ce418a719
commit 0dfd7a091c
18 changed files with 592 additions and 38 deletions

View File

@@ -38,6 +38,10 @@ public class WxCpProperties {
* 微信企业号应用 EncodingAESKey
*/
private String aesKey;
/**
* 微信企业号应用 会话存档私钥
*/
private String msgAuditPriKey;
/**
* 微信企业号应用 会话存档类库路径
*/

View File

@@ -18,7 +18,8 @@ public abstract class AbstractWxCpConfigStorageConfiguration {
String token = properties.getToken();
Integer agentId = properties.getAgentId();
String aesKey = properties.getAesKey();
// 企业微信,会话存档路径
// 企业微信,私钥,会话存档路径
String msgAuditPriKey = properties.getMsgAuditPriKey();
String msgAuditLibPath = properties.getMsgAuditLibPath();
config.setCorpId(corpId);
@@ -32,6 +33,9 @@ public abstract class AbstractWxCpConfigStorageConfiguration {
if (StringUtils.isNotBlank(aesKey)) {
config.setAesKey(aesKey);
}
if (StringUtils.isNotBlank(msgAuditPriKey)) {
config.setMsgAuditPriKey(msgAuditPriKey);
}
if (StringUtils.isNotBlank(msgAuditLibPath)) {
config.setMsgAuditLibPath(msgAuditLibPath);
}