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
15fecc3c
Commit
15fecc3c
authored
Sep 30, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8b4b6cf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
ApiFilterAttribute.cs
Mall.WebApi/Filter/ApiFilterAttribute.cs
+8
-11
No files found.
Mall.WebApi/Filter/ApiFilterAttribute.cs
View file @
15fecc3c
...
...
@@ -77,8 +77,8 @@ namespace Mall.WebApi.Filter
{
actionContext
.
Result
=
new
Microsoft
.
AspNetCore
.
Mvc
.
JsonResult
(
new
ApiResult
{
resultCode
=
(
int
)
ResultCode
.
FormRepeatSubmit
,
message
=
"Token验证失败!"
,
resultCode
=
(
int
)
ResultCode
.
TokenOverdue
,
message
=
"Token验证失败!
1
"
,
data
=
null
});
}
...
...
@@ -90,16 +90,13 @@ namespace Mall.WebApi.Filter
{
actionContext
.
Result
=
new
Microsoft
.
AspNetCore
.
Mvc
.
JsonResult
(
new
ApiResult
{
resultCode
=
(
int
)
ResultCode
.
FormRepeatSubmit
,
message
=
"Token验证失败!"
,
resultCode
=
(
int
)
ResultCode
.
TokenOverdue
,
message
=
"Token验证失败!
2
"
,
data
=
null
});
}
}
}
#
region
签名校验权限校验
if
(
actionContext
.
HttpContext
.
Items
[
GlobalKey
.
TokenUserInfo
]
!=
null
)
{
...
...
@@ -202,7 +199,7 @@ namespace Mall.WebApi.Filter
new
ApiResult
{
resultCode
=
(
int
)
ResultCode
.
TokenOverdue
,
message
=
"用户凭证失效,请重新登录"
,
message
=
"用户凭证失效,请重新登录
1
"
,
data
=
null
});
}
...
...
@@ -213,7 +210,7 @@ namespace Mall.WebApi.Filter
new
ApiResult
{
resultCode
=
(
int
)
ResultCode
.
TokenIllegal
,
message
=
"用户凭证
无效,请重新登录
"
,
message
=
"用户凭证
失效,请重新登录2
"
,
data
=
null
});
}
...
...
@@ -224,7 +221,7 @@ namespace Mall.WebApi.Filter
new
ApiResult
{
resultCode
=
(
int
)
ResultCode
.
TokenIllegal
,
message
=
"用户凭证失效,请重新登录"
,
message
=
"用户凭证失效,请重新登录
3
"
,
data
=
null
});
}
...
...
@@ -235,7 +232,7 @@ namespace Mall.WebApi.Filter
new
ApiResult
{
resultCode
=
(
int
)
ResultCode
.
TokenIllegal
,
message
=
"用户凭证为空,请重新登录"
,
message
=
"用户凭证为空,请重新登录
4
"
,
data
=
null
});
}
...
...
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