From 32afd3921cff1c8c5e8677c03eb82c7b74d011f9 Mon Sep 17 00:00:00 2001 From: wangpengfei <1928057482@qq.com> Date: Thu, 18 Jan 2024 16:16:12 +0800 Subject: [PATCH] 1/18 --- .../com/yxt/yythmall/config/SaTokenConfigure.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/yxt/yythmall/config/SaTokenConfigure.java b/src/main/java/com/yxt/yythmall/config/SaTokenConfigure.java index 36be799..1f9ce99 100644 --- a/src/main/java/com/yxt/yythmall/config/SaTokenConfigure.java +++ b/src/main/java/com/yxt/yythmall/config/SaTokenConfigure.java @@ -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"); } }