Skip to content

Commit

Permalink
🐛 修复错误添加备用链接
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonNoCry committed Nov 3, 2023
1 parent bea5332 commit afb9a0d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Blog.Core.Extensions/ServiceExtensions/SqlsugarSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ public static void AddSqlsugarSetup(this IServiceCollection services)
{
BaseDBConfig.MainConfig = config;
}

//复用连接
if (m.ConnId.ToLower().StartsWith(MainDb.CurrentDbConnId.ToLower()))
else if (m.ConnId.ToLower().StartsWith(MainDb.CurrentDbConnId.ToLower()))
{
//复用连接
BaseDBConfig.ReuseConfigs.Add(config);
}


BaseDBConfig.ValidConfig.Add(config);
}
Expand Down

0 comments on commit afb9a0d

Please sign in to comment.