|
|
|
@ -87,16 +87,16 @@ public static class SqlsugarInstall
|
|
|
|
|
//}
|
|
|
|
|
var httpContextAccessor = services.GetService<IHttpContextAccessor>();
|
|
|
|
|
var user = services.GetService<IUser>();
|
|
|
|
|
if (user.IsNullOrEmpty())
|
|
|
|
|
{
|
|
|
|
|
user = new AspNetUser(httpContextAccessor)
|
|
|
|
|
{
|
|
|
|
|
UserId = "1288018625843826688",
|
|
|
|
|
TenantId = "1288018625843826688",
|
|
|
|
|
CompanyId = "1288018625843826688",
|
|
|
|
|
OrgId = 1288018625843826688
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
//if (user.IsNullOrEmpty())
|
|
|
|
|
//{
|
|
|
|
|
// user = new AspNetUser(httpContextAccessor)
|
|
|
|
|
// {
|
|
|
|
|
// UserId = "1288018625843826688",
|
|
|
|
|
// TenantId = "1288018625843826688",
|
|
|
|
|
// CompanyId = "1288018625843826688",
|
|
|
|
|
// OrgId = 1288018625843826688
|
|
|
|
|
// };
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
//全局上下文生效
|
|
|
|
|
SqlSugarScope sqlSugar = new SqlSugarScope(connectConfigList,
|
|
|
|
|