修改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();
|
||||
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