修改retUser接口
This commit is contained in:
1 parent
1080d61399
commit
4ead89764a
1 file changed
+4
@@ -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