🎨 #2853 【企业微信】配置类中增加会话存档secret的配置项

This commit is contained in:
Alixhan
2022-10-25 17:01:50 +08:00
committed by GitHub
parent 512975fb86
commit 48a22a0e60
4 changed files with 31 additions and 3 deletions

View File

@@ -257,4 +257,10 @@ public interface WxCpConfigStorage {
* @return key webhook key
*/
String getWebhookKey();
/**
* 获取会话存档的secret
* @return msg audit secret
*/
String getMsgAuditSecret();
}

View File

@@ -46,6 +46,7 @@ public class WxCpDefaultConfigImpl implements WxCpConfigStorage, Serializable {
/**
* 会话存档私钥以及sdk路径
*/
private volatile String msgAuditSecret;
private volatile String msgAuditPriKey;
private volatile String msgAuditLibPath;
private volatile String oauth2redirectUri;
@@ -435,4 +436,18 @@ public class WxCpDefaultConfigImpl implements WxCpConfigStorage, Serializable {
this.webhookKey = webhookKey;
return this;
}
@Override
public String getMsgAuditSecret() {
return this.msgAuditSecret;
}
/**
* 设置会话存档secret
* @param msgAuditSecret
*/
public WxCpDefaultConfigImpl setMsgAuditSecret(String msgAuditSecret) {
this.msgAuditSecret = msgAuditSecret;
return this;
}
}

View File

@@ -466,4 +466,8 @@ public class WxCpRedisConfigImpl implements WxCpConfigStorage {
return this.getWebhookKey();
}
@Override
public String getMsgAuditSecret() {
return null;
}
}