javaktv点歌系统项目(java点歌系统)java点歌管理系统
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
JSONObject jsonObject = new JSONObject();
String username = req.getParameter("username");
String password = req.getParameter("password");
resp.setCharacterEncoding("UTF-8");
HttpSession session = req.getSession();
if (StringUtils.isBlank(username) || StringUtils.isBlank(password)) {
jsonObject.put("code", 2000);
jsonObject.put("flag", "fail");
jsonObject.put("user", null);
jsonObject.put("msg", "usernameOrPasswordIsBank");//用户名密码不能为空
resp.getWriter().print(jsonObject);
return;
}
password = MyMD5Util.encrypt(password);
System.out.println(password);
BusinessUserVO bu