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