fix 权限判断错误的bug
feat 调整默认静态资源的path 为 adminaapi debug 关闭调试信息
This commit is contained in:
parent
340e049c9a
commit
f5220aa8cc
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue