mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🎨 #2853 【企业微信】配置类中增加会话存档secret的配置项
This commit is contained in:
@@ -257,4 +257,10 @@ public interface WxCpConfigStorage {
|
||||
* @return key webhook key
|
||||
*/
|
||||
String getWebhookKey();
|
||||
|
||||
/**
|
||||
* 获取会话存档的secret
|
||||
* @return msg audit secret
|
||||
*/
|
||||
String getMsgAuditSecret();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -466,4 +466,8 @@ public class WxCpRedisConfigImpl implements WxCpConfigStorage {
|
||||
return this.getWebhookKey();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMsgAuditSecret() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user