| | |
| | | public void clazz(AcceptData acceptData, @PathVariable String method, HttpServletRequest request, PrintWriter out) { |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | if (!Utils.signIsRight(request)) { |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | return; |
| | | } |
| | | |
| | | String uid = request.getParameter("Uid"); |
| | | if (StringUtil.isNullOrEmpty(uid)) |
| | |
| | | |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | if (!Utils.signIsRight(request)) { |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | return; |
| | | } |
| | | |
| | | String uid = request.getParameter("Uid"); |
| | | if (StringUtil.isNullOrEmpty(uid)) |
| | |
| | | public void user(AcceptData acceptData, @PathVariable String method, HttpServletRequest request, String callback, PrintWriter out) { |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | if (!Utils.signIsRight(request)) |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | |
| | | String uid = request.getParameter("Uid"); |
| | | if (!method.equalsIgnoreCase("getUid")) { |
| | | if (StringUtil.isNullOrEmpty(uid)) |
| | |
| | | public void news(AcceptData acceptData, @PathVariable String method, HttpServletRequest request, PrintWriter out) { |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | if (!Utils.signIsRight(request)) |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | |
| | | String uid = request.getParameter("Uid"); |
| | | if (StringUtil.isNullOrEmpty(uid)) |
| | | uid = userService.getUid(request.getParameter("Device"), 1 + "", "", "", "", ""); |
| | |
| | | public void zhibo(AcceptData acceptData, @PathVariable String method, HttpServletRequest request, HttpServletResponse response, PrintWriter out) { |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | // |
| | | if (!Utils.signIsRight(request)) |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | |
| | | String uid = request.getParameter("Uid"); |
| | | if (StringUtil.isNullOrEmpty(uid)) |
| | |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | |
| | | if (!Utils.signIsRight(request)) |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | |
| | | if (method.equalsIgnoreCase("getConfig")) {// 获取用户编号 |
| | | if (method.equalsIgnoreCase("getConfig")) {// 获取配置信息 |
| | | configParser.getConfig(acceptData, request, out); |
| | | } |
| | | |