1
0
mirror of synced 2026-10-25 01:16:13 +08:00

🎨 #4079 【企业微信】支持长整型的企业微信应用ID

This commit is contained in:
Binary Wang
2026-07-31 00:21:52 +08:00
committed by GitHub
parent bdf947e2ca
commit 6014c833bc
41 changed files with 162 additions and 113 deletions

View File

@@ -125,7 +125,7 @@ public abstract class AbstractWxCpConfiguration {
private void configCorp(WxCpDefaultConfigImpl config, WxCpSingleProperties wxCpSingleProperties) {
String corpId = wxCpSingleProperties.getCorpId();
String corpSecret = wxCpSingleProperties.getCorpSecret();
Integer agentId = wxCpSingleProperties.getAgentId();
Long agentId = wxCpSingleProperties.getAgentId();
String token = wxCpSingleProperties.getToken();
String aesKey = wxCpSingleProperties.getAesKey();
// 企业微信,私钥,会话存档路径

View File

@@ -52,7 +52,7 @@ public class WxCpSingleProperties implements Serializable {
* <p>使用自建应用 Secret 时,需要填写对应应用的 AgentId。</p>
* <p>使用通讯录同步 Secret 时,无需填写此字段。</p>
*/
private Integer agentId;
private Long agentId;
/**
* 微信企业号应用 EncodingAESKey
*/

View File

@@ -34,7 +34,7 @@ public class WxCpProperties {
/**
* 微信企业号应用 ID
*/
private Integer agentId;
private Long agentId;
/**
* 微信企业号应用 EncodingAESKey
*/

View File

@@ -15,7 +15,7 @@ public abstract class AbstractWxCpConfigStorageConfiguration {
protected WxCpDefaultConfigImpl config(WxCpDefaultConfigImpl config, WxCpProperties properties) {
String corpId = properties.getCorpId();
String corpSecret = properties.getCorpSecret();
Integer agentId = properties.getAgentId();
Long agentId = properties.getAgentId();
String token = properties.getToken();
String aesKey = properties.getAesKey();
// 企业微信,私钥,会话存档路径