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
9bee3634
Commit
9bee3634
authored
Mar 12, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放开权限,联调
parent
e5e9452b
Pipeline
#71486
passed with stages
in 1 minute 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
WebConfig.java
...netease/yanxuan/wx/store/sharer/biz/config/WebConfig.java
+5
-6
UserController.java
...anxuan/wx/store/sharer/web/controller/UserController.java
+2
-2
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/WebConfig.java
View file @
9bee3634
...
...
@@ -19,16 +19,15 @@ import java.util.Collections;
public
class
WebConfig
implements
WebMvcConfigurer
{
private
final
AuthInterceptor
authInterceptor
;
// private static final String[] EXCLUDE_URLS = {"/open/**
",
// "/test/**", "/i/health", "/user/login
",
// "
/product/page/list"};
private
static
final
String
[]
EXCLUDE_URLS
=
{
"/i/health
"
,
"/sharer/open/**"
,
"/sharer/test/**
"
,
"/sharer/user/login"
,
"/sharer
/product/page/list"
};
private
static
final
String
[]
EXCLUDE_URLS
=
{
"/**"
};
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
//
registry.addInterceptor(authInterceptor)
//
.excludePathPatterns(getExcludePathPatterns());
registry
.
addInterceptor
(
authInterceptor
)
.
excludePathPatterns
(
getExcludePathPatterns
());
}
/**
...
...
yanxuan-wx-store-sharer-web/src/main/java/com/netease/yanxuan/wx/store/sharer/web/controller/UserController.java
View file @
9bee3634
...
...
@@ -20,14 +20,14 @@ import org.springframework.web.bind.annotation.RestController;
*/
@RequiredArgsConstructor
@RestController
@RequestMapping
(
"/user"
)
@RequestMapping
(
"/
sharer/
user"
)
public
class
UserController
extends
BaseController
{
private
final
IUserService
iUserService
;
/**
* 登录
*/
@PostMapping
(
"/
sharer/
login"
)
@PostMapping
(
"/login"
)
public
Result
<
UserTokenVO
>
login
(
@Validated
@RequestBody
LoginBO
bo
)
{
UserTokenVO
result
=
iUserService
.
login
(
bo
);
return
Result
.
ok
(
result
);
...
...
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