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.ljsd.util.KTSDKConstans;
|
||||||
import com.mongodb.BasicDBObject;
|
import com.mongodb.BasicDBObject;
|
||||||
import com.mongodb.DBObject;
|
import com.mongodb.DBObject;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
import javax.servlet.http.HttpServlet;
|
import javax.servlet.http.HttpServlet;
|
||||||
|
|
@ -22,6 +24,7 @@ import java.util.Random;
|
||||||
|
|
||||||
public class GetUserController extends HttpServlet {
|
public class GetUserController extends HttpServlet {
|
||||||
private final static String _COLLECTION_NAME = "user_info";
|
private final static String _COLLECTION_NAME = "user_info";
|
||||||
|
private static final Logger LOGGER = LoggerFactory.getLogger(GetUserController.class);
|
||||||
|
|
||||||
public GetUserController() {
|
public GetUserController() {
|
||||||
super();
|
super();
|
||||||
|
|
@ -39,6 +42,7 @@ public class GetUserController extends HttpServlet {
|
||||||
response.sendError(400, "openId is empety");
|
response.sendError(400, "openId is empety");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
LOGGER.info("the opendId = {}",openId);
|
||||||
String serverId = request.getParameter("serverId");
|
String serverId = request.getParameter("serverId");
|
||||||
if (serverId == null || serverId.isEmpty()) {
|
if (serverId == null || serverId.isEmpty()) {
|
||||||
response.sendError(400, "serverId is empety");
|
response.sendError(400, "serverId is empety");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue