Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
d4c3c25a
Commit
d4c3c25a
authored
May 25, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b13b3ca2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
383 additions
and
9 deletions
+383
-9
MallController.cs
Mall.WebApi/Controllers/Mall/MallController.cs
+379
-8
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+1
-0
ApiFilterAttribute.cs
Mall.WebApi/Filter/ApiFilterAttribute.cs
+1
-0
Startup.cs
Mall.WebApi/Startup.cs
+2
-1
No files found.
Mall.WebApi/Controllers/Mall/MallController.cs
View file @
d4c3c25a
This diff is collapsed.
Click to expand it.
Mall.WebApi/Controllers/User/TenantController.cs
View file @
d4c3c25a
...
...
@@ -27,6 +27,7 @@ namespace Mall.WebApi.Controllers.User
[
ApiExceptionFilter
]
[
ApiController
]
[
EnableCors
(
"AllowCors"
)]
public
class
TenantController
:
BaseController
{
/// <summary>
...
...
Mall.WebApi/Filter/ApiFilterAttribute.cs
View file @
d4c3c25a
...
...
@@ -46,6 +46,7 @@ namespace Mall.WebApi.Filter
"/api/Tenant/SetTenantFirst"
,
//用户注册第一步
"/api/Tenant/SetTenantSecond"
,
//用户注册第二步
"/api/Tenant/UpdateTenantPwd"
,
//忘记密码
"/api/Mall/GetHome"
,
//
};
bool
isCheckToken
=
true
;
foreach
(
var
item
in
notValidatList
)
...
...
Mall.WebApi/Startup.cs
View file @
d4c3c25a
...
...
@@ -44,7 +44,8 @@ namespace Mall.WebApi
{
"http://localhost:8081"
,
"http://localhost:8080"
,
"http://localhost:8082"
"http://localhost:8082"
,
"http://127.0.0.1:50512"
};
services
.
AddCors
(
options
=>
options
.
AddPolicy
(
"AllowCors"
,
policy
=>
policy
.
AllowAnyHeader
().
AllowAnyMethod
().
AllowCredentials
().
WithOrigins
(
corsArray
.
ToArray
())));
}
...
...
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