mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-30 01:46:18 +08:00
no message
This commit is contained in:
@@ -37,7 +37,7 @@ public class APIRouter extends HttpServlet {
|
|||||||
|
|
||||||
public APIRouter() {
|
public APIRouter() {
|
||||||
try {
|
try {
|
||||||
ClassPath path = ClassPath.from(Thread.currentThread().getContextClassLoader());
|
ClassPath path = ClassPath.from(getServletContext().getClassLoader());
|
||||||
Set<ClassPath.ClassInfo> classes = path.getTopLevelClasses();
|
Set<ClassPath.ClassInfo> classes = path.getTopLevelClasses();
|
||||||
for (ClassPath.ClassInfo info : classes) {
|
for (ClassPath.ClassInfo info : classes) {
|
||||||
Class<?> clz = info.load();
|
Class<?> clz = info.load();
|
||||||
@@ -69,7 +69,14 @@ public class APIRouter extends HttpServlet {
|
|||||||
API api = nodes.get(req.getPathInfo());
|
API api = nodes.get(req.getPathInfo());
|
||||||
if (api == null) {
|
if (api == null) {
|
||||||
// resp.sendError(HttpServletResponse.SC_FORBIDDEN);
|
// resp.sendError(HttpServletResponse.SC_FORBIDDEN);
|
||||||
obj = nodes;
|
// obj = nodes;
|
||||||
|
obj = new Object[]{
|
||||||
|
Thread.currentThread().getContextClassLoader().getClass(),
|
||||||
|
getServletContext().getClassLoader().getClass(),
|
||||||
|
getClass().getClassLoader().getClass(),
|
||||||
|
getClass().getPackage().getName(),
|
||||||
|
API.class.getClassLoader().getClass()
|
||||||
|
};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
WxSession session = getSession(req);
|
WxSession session = getSession(req);
|
||||||
|
|||||||
Reference in New Issue
Block a user