Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liudong1993
Property
Commits
602b9602
Commit
602b9602
authored
Oct 12, 2024
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bf29a619
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
LoginController.cs
Property.WebApi/Controllers/Login/LoginController.cs
+5
-1
Startup.cs
Property.WebApi/Startup.cs
+12
-1
No files found.
Property.WebApi/Controllers/Login/LoginController.cs
View file @
602b9602
...
...
@@ -60,7 +60,11 @@ namespace Property.WebApi.Controllers.Login
var
gmodel
=
loginModule
.
GetGroupByDomain
(
new
RB_Group_Extend
{
Domain
=
Domain
}).
FirstOrDefault
();
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
);
...
...
Property.WebApi/Startup.cs
View file @
602b9602
...
...
@@ -103,8 +103,19 @@ namespace Property.WebApi
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
{
FileProvider
=
new
Microsoft
.
Extensions
.
FileProviders
.
PhysicalFileProvider
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment