feat: 接入消息加密与实名认证能力
This commit is contained in:
@@ -65,6 +65,7 @@ var (
|
||||
moderationPolicyCache = newConfigCache[*types.ModerationPolicy]()
|
||||
moderationWordsCache = newConfigCache[*types.SensitiveWordSet]()
|
||||
securityPolicyCache = newConfigCache[*types.SecurityPolicy]()
|
||||
realNamePolicyCache = newConfigCache[*types.RealNamePolicy]()
|
||||
thirdPartyConfigAllKeys = "*"
|
||||
)
|
||||
|
||||
@@ -145,8 +146,10 @@ func InvalidateTenantConfigCache(code string, id types.TenantID) {
|
||||
}
|
||||
if id.IsValid() {
|
||||
tenantByIDCache.delete(formatTenantIDForCache(id))
|
||||
realNamePolicyCache.delete(formatTenantIDForCache(id))
|
||||
} else if strings.TrimSpace(code) == "" {
|
||||
tenantByIDCache.clear()
|
||||
realNamePolicyCache.clear()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user