修改retUser接口
This commit is contained in:
@@ -42,6 +42,10 @@ public class retUserServlet extends HttpServlet {
|
|||||||
|
|
||||||
PrintWriter writer = resp.getWriter();
|
PrintWriter writer = resp.getWriter();
|
||||||
String username = req.getParameter("username");
|
String username = req.getParameter("username");
|
||||||
|
if(username ==null)
|
||||||
|
{
|
||||||
|
return ;
|
||||||
|
}
|
||||||
String jsonString="";
|
String jsonString="";
|
||||||
jsonString = JSONObject.toJSONString(userService.selectUserByName(username));
|
jsonString = JSONObject.toJSONString(userService.selectUserByName(username));
|
||||||
if(jsonString.equals(""))
|
if(jsonString.equals(""))
|
||||||
|
Reference in New Issue
Block a user