修改retUser接口

This commit is contained in:
cyk
2023-07-11 13:58:26 +08:00
parent 1080d61399
commit 4ead89764a

View File

@@ -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(""))