未携带前缀默认为admin会话
This commit is contained in:
@@ -31,11 +31,11 @@ public class MyStpLogic {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private StpLogic getLogic() {
|
private StpLogic getLogic() {
|
||||||
boolean hit = SaRouter.match("/admin/**").isHit();
|
boolean hit = SaRouter.match("/user/**").isHit();
|
||||||
if (hit) {
|
if (hit) {
|
||||||
return ADMIN_LOGIC;
|
return CLIENT_LOGIC;
|
||||||
}
|
}
|
||||||
return CLIENT_LOGIC;
|
return ADMIN_LOGIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user