🐛fix: #ICZD3Z

This commit is contained in:
yubaolee
2026-01-10 13:46:31 +08:00
parent f30fe5e11d
commit 6302ad4bca

View File

@@ -75,7 +75,7 @@ namespace OpenAuth.App
ISqlSugarClient defualtClient = SugarClient;
var currentConfigId = SugarClient.CurrentConnectionConfig.ConfigId;
if(currentConfigId != null && currentConfigId.ToString() !=""){
defualtClient = SugarClient.AsTenant().GetConnection(Define.DEFAULT_TENANT_ID);
defualtClient = SugarClient.AsTenant().GetConnection("");
}
var rule = defualtClient.Queryable<DataPrivilegeRule>().First(u => u.SourceCode == moduleName);