mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-10 01:08:21 +08:00
fix 权限判断错误的bug
feat 调整默认静态资源的path 为 adminaapi debug 关闭调试信息
This commit is contained in:
@@ -200,7 +200,7 @@ public class LikeAdminInterceptor implements HandlerInterceptor {
|
||||
}
|
||||
|
||||
// 路由转权限
|
||||
String prefix = "/api/";
|
||||
String prefix = "/adminapi/";
|
||||
String route = uri.replaceFirst(prefix, "");
|
||||
String auths = route.replace("/", ":");
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ spring:
|
||||
profiles:
|
||||
active: dev
|
||||
mvc:
|
||||
static-path-pattern: /api/static/**
|
||||
static-path-pattern: /adminapi/static/**
|
||||
throw-exception-if-no-handler-found: true
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
|
||||
@@ -79,7 +79,6 @@ public class UrlUtils {
|
||||
String engine = ConfigUtils.get("storage", "default", "local");
|
||||
engine = engine.equals("") ? "local" : engine;
|
||||
if (engine.equals("local")) {
|
||||
System.out.println(url);
|
||||
if (url.startsWith("/adminapi/uploads/")) {
|
||||
return RequestUtils.uri() + url;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user