|
|
|
@ -29,7 +29,7 @@ public class TenantService : ITenantService
|
|
|
|
|
public TenantService(IServiceProvider serviceProvider)
|
|
|
|
|
{
|
|
|
|
|
_serviceProvider = serviceProvider;
|
|
|
|
|
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
|
|
|
|
|
db = _serviceProvider.GetRequiredService<ISqlSugarClient>().CopyNew();
|
|
|
|
|
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -187,7 +187,7 @@ public class TenantService : ITenantService
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
db.Ado.RollbackTran();
|
|
|
|
|
ex.LogAsync(db).GetAwaiter().GetResult();
|
|
|
|
|
//ex.LogAsync(db).GetAwaiter().GetResult();
|
|
|
|
|
return DataResult.Failed("租户权限模块授权失败!" + ex, MultiLanguageConst.DataUpdateFailed);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|