Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
Overview
Overview
Details
Activity
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
wx
yanxuan-wx-store-sharer
Commits
82f148e5
Commit
82f148e5
authored
Mar 20, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常日志打印简化
parent
8e339ae5
Pipeline
#71956
passed with stages
in 1 minute 7 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
HttpStatusConstant.java
...n/wx/store/sharer/common/constant/HttpStatusConstant.java
+1
-1
GlobalExceptionHandler.java
...x/store/sharer/common/handler/GlobalExceptionHandler.java
+1
-5
No files found.
yanxuan-wx-store-sharer-common/src/main/java/com/netease/yanxuan/wx/store/sharer/common/constant/HttpStatusConstant.java
View file @
82f148e5
...
...
@@ -17,7 +17,7 @@ public interface HttpStatusConstant {
/**
* 未绑定推客
*/
int
UNAUTH
SHARER
=
40101
;
int
NO_BIND_
SHARER
=
40101
;
/**
* 失败标记
...
...
yanxuan-wx-store-sharer-common/src/main/java/com/netease/yanxuan/wx/store/sharer/common/handler/GlobalExceptionHandler.java
View file @
82f148e5
...
...
@@ -25,8 +25,6 @@ public class GlobalExceptionHandler {
*/
@ExceptionHandler
(
NoAuthException
.
class
)
public
Result
<
Void
>
handleNoAuthException
(
NoAuthException
e
,
HttpServletRequest
request
)
{
String
requestURI
=
request
.
getRequestURI
();
log
.
error
(
"请求地址'{}',认证失败'{}',无法访问系统资源"
,
requestURI
,
e
.
getMessage
());
return
Result
.
fail
(
HttpStatusConstant
.
UNAUTHORIZED
,
"认证失败,无法访问系统资源"
);
}
...
...
@@ -35,9 +33,7 @@ public class GlobalExceptionHandler {
*/
@ExceptionHandler
(
NoBindSharerException
.
class
)
public
Result
<
Void
>
handleNoBindSharerException
(
NoBindSharerException
e
,
HttpServletRequest
request
)
{
String
requestURI
=
request
.
getRequestURI
();
log
.
error
(
"请求地址'{}',认证失败'{}',无法访问系统资源"
,
requestURI
,
e
.
getMessage
());
return
Result
.
fail
(
HttpStatusConstant
.
UNAUTHSHARER
,
"未授权推客"
);
return
Result
.
fail
(
HttpStatusConstant
.
NO_BIND_SHARER
,
"未授权推客"
);
}
/**
...
...
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