This commit is contained in:
2024-01-18 16:16:12 +08:00
parent ea2ec275df
commit 32afd3921c

View File

@@ -1,8 +1,8 @@
package com.yxt.yythmall.config;
import cn.dev33.satoken.interceptor.SaInterceptor;
import cn.dev33.satoken.stp.StpUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@@ -11,10 +11,10 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
* @author wangpengfei
* @date 2023/5/16 14:43
*/
@Configuration
public class SaTokenConfigure implements WebMvcConfigurer {
@Value("${image.url.prefix:http://127.0.0.1:8080/upload/}")
private String urlPrefix;
// 注册 Sa-Token 拦截器
@Override
public void addInterceptors(InterceptorRegistry registry) {
@@ -68,15 +68,12 @@ public class SaTokenConfigure implements WebMvcConfigurer {
.excludePathPatterns("/lpkgoods/vegeCellarTypeList")
.excludePathPatterns("/vegetablecellar/addGoods/**")
.excludePathPatterns("/lpkgoods/vegeCellarList")
.excludePathPatterns("/customerstore/getStoreBySid/**")
.excludePathPatterns("/lpkgiftcard/bindAllCard")
.excludePathPatterns("/lpkcustomer/customerInfo")
//2024-01-18
.excludePathPatterns("/lpkcustomer/getCustomerInfo/**")
.excludePathPatterns("/lpkcustomer/modifyUserNickName")
.excludePathPatterns("/lpkcustomer/modifyHeadImage")
;
.excludePathPatterns("/lpkcustomer/modifyHeadImage");
}
}