mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-30 01:46:18 +08:00
add bypasswechat debug api
This commit is contained in:
@@ -80,6 +80,9 @@ public class Login extends HttpServlet {
|
|||||||
User u = TableUser.getById(Long.parseLong(request.getParameter("bypassuser")));
|
User u = TableUser.getById(Long.parseLong(request.getParameter("bypassuser")));
|
||||||
session.setAttribute(Attribute.USER, u);
|
session.setAttribute(Attribute.USER, u);
|
||||||
}
|
}
|
||||||
|
if (request.getParameter("bypasswechat") != null) {
|
||||||
|
session.setAttribute(Attribute.WECHAT, request.getParameter("bypasswechat"));
|
||||||
|
}
|
||||||
|
|
||||||
return new Response(Response.ResponseCode.OK, sid);
|
return new Response(Response.ResponseCode.OK, sid);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user