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
1dfc5057
Commit
1dfc5057
authored
Mar 13, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调问题处理
parent
1a2cd41d
Pipeline
#71573
passed with stages
in 1 minute 11 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
18 deletions
+5
-18
WebConfig.java
...netease/yanxuan/wx/store/sharer/biz/config/WebConfig.java
+1
-18
UserController.java
...anxuan/wx/store/sharer/web/controller/UserController.java
+4
-0
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/WebConfig.java
View file @
1dfc5057
...
...
@@ -6,9 +6,6 @@ import org.springframework.context.annotation.Configuration;
import
org.springframework.web.servlet.config.annotation.InterceptorRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
;
import
java.util.ArrayList
;
import
java.util.Collections
;
/**
* @Description 配置
* @Author fanjiaxin
...
...
@@ -19,23 +16,9 @@ import java.util.Collections;
public
class
WebConfig
implements
WebMvcConfigurer
{
private
final
AuthInterceptor
authInterceptor
;
private
static
final
String
[]
EXCLUDE_URLS
=
{
"/i/health"
,
"/sharer/open/**"
,
"/sharer/test/**"
,
"/sharer/user/login"
,
"/sharer/product/page/list"
};
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
registry
.
addInterceptor
(
authInterceptor
)
.
excludePathPatterns
(
getExcludePathPatterns
());
}
/**
* 白名单
*/
private
ArrayList
<
String
>
getExcludePathPatterns
()
{
ArrayList
<
String
>
list
=
new
ArrayList
<>();
Collections
.
addAll
(
list
,
EXCLUDE_URLS
);
return
list
;
.
addPathPatterns
(
"/**"
);
}
}
yanxuan-wx-store-sharer-web/src/main/java/com/netease/yanxuan/wx/store/sharer/web/controller/UserController.java
View file @
1dfc5057
...
...
@@ -5,6 +5,7 @@ import com.netease.yanxuan.wx.store.sharer.biz.meta.model.vo.UserCommissionRatio
import
com.netease.yanxuan.wx.store.sharer.biz.meta.model.vo.UserTokenVO
;
import
com.netease.yanxuan.wx.store.sharer.biz.meta.model.vo.SharerInfoVO
;
import
com.netease.yanxuan.wx.store.sharer.biz.service.IUserService
;
import
com.netease.yanxuan.wx.store.sharer.common.annotation.LoginRequired
;
import
com.netease.yanxuan.wx.store.sharer.common.core.Result
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.validation.annotation.Validated
;
...
...
@@ -36,6 +37,7 @@ public class UserController extends BaseController {
/**
* 刷新用户信息
*/
@LoginRequired
@PostMapping
(
"/refreshUserInfo"
)
public
Result
<
SharerInfoVO
>
refreshUserInfo
()
{
SharerInfoVO
result
=
iUserService
.
refreshUserInfo
();
...
...
@@ -45,6 +47,7 @@ public class UserController extends BaseController {
/**
* 用户信息
*/
@LoginRequired
@PostMapping
(
"/getUserInfo"
)
public
Result
<
SharerInfoVO
>
getUserInfo
()
{
SharerInfoVO
result
=
iUserService
.
getUserInfo
();
...
...
@@ -54,6 +57,7 @@ public class UserController extends BaseController {
/**
* 查询平台默认的分佣比例
*/
@LoginRequired
@PostMapping
(
"/getCommissionRatioDefault"
)
public
Result
<
UserCommissionRatioVO
>
getCommissionRatioDefault
()
{
UserCommissionRatioVO
result
=
iUserService
.
getCommissionRatioDefault
();
...
...
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