generated from root/miduo_server
print log
parent
2407b4186c
commit
222386a2cf
|
@ -8,6 +8,8 @@ import com.ljsd.util.HttpUtils;
|
|||
import com.ljsd.util.KTSDKConstans;
|
||||
import com.mongodb.BasicDBObject;
|
||||
import com.mongodb.DBObject;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
|
@ -22,6 +24,7 @@ import java.util.Random;
|
|||
|
||||
public class GetUserController extends HttpServlet {
|
||||
private final static String _COLLECTION_NAME = "user_info";
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(GetUserController.class);
|
||||
|
||||
public GetUserController() {
|
||||
super();
|
||||
|
@ -39,6 +42,7 @@ public class GetUserController extends HttpServlet {
|
|||
response.sendError(400, "openId is empety");
|
||||
return;
|
||||
}
|
||||
LOGGER.info("the opendId = {}",openId);
|
||||
String serverId = request.getParameter("serverId");
|
||||
if (serverId == null || serverId.isEmpty()) {
|
||||
response.sendError(400, "serverId is empety");
|
||||
|
|
Loading…
Reference in New Issue