Commit 602b9602 authored by liudong1993's avatar liudong1993

1

parent bf29a619
...@@ -60,7 +60,11 @@ namespace Property.WebApi.Controllers.Login ...@@ -60,7 +60,11 @@ namespace Property.WebApi.Controllers.Login
var gmodel = loginModule.GetGroupByDomain(new RB_Group_Extend { Domain = Domain }).FirstOrDefault(); var gmodel = loginModule.GetGroupByDomain(new RB_Group_Extend { Domain = Domain }).FirstOrDefault();
if (gmodel == null) if (gmodel == null)
{ {
return ApiResult.Failed("集团域名不存在,登录失败"); gmodel = loginModule.GetGroupByDomain(new RB_Group_Extend { Domain = "admin.oytour.com" }).FirstOrDefault();
if (gmodel == null)
{
return ApiResult.Failed("集团域名不存在,登录失败");
}
} }
EmPassword = REBORN.Common.DES.Encrypt(EmPassword, REBORN.Common.Config.WebApiKey, REBORN.Common.Config.WebApiIV); EmPassword = REBORN.Common.DES.Encrypt(EmPassword, REBORN.Common.Config.WebApiKey, REBORN.Common.Config.WebApiIV);
......
...@@ -103,8 +103,19 @@ namespace Property.WebApi ...@@ -103,8 +103,19 @@ namespace Property.WebApi
endpoints.MapControllers(); endpoints.MapControllers();
}); });
System.WebHttpContext.HttpContext.Configure(app.ApplicationServices.GetRequiredService<Microsoft.AspNetCore.Http.IHttpContextAccessor>()); System.WebHttpContext.HttpContext.Configure(app.ApplicationServices.GetRequiredService<IHttpContextAccessor>());
string filePath = Path.Combine(Directory.GetCurrentDirectory(), "ExportFile");
if (System.IO.Directory.Exists(filePath) == false)//如果不存在就创建file文件夹
{
System.IO.Directory.CreateDirectory(filePath);
}
filePath = Path.Combine(Directory.GetCurrentDirectory(), "upfile");
if (System.IO.Directory.Exists(filePath) == false)//如果不存在就创建file文件夹
{
System.IO.Directory.CreateDirectory(filePath);
}
app.UseStaticFiles(new StaticFileOptions app.UseStaticFiles(new StaticFileOptions
{ {
FileProvider = new Microsoft.Extensions.FileProviders.PhysicalFileProvider( FileProvider = new Microsoft.Extensions.FileProviders.PhysicalFileProvider(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment