| | |
| | | String method = request.getParameter("Method"); |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | if (!Utils.signIsRight(request)) { |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | return; |
| | | } |
| | | |
| | | String uid = request.getParameter("Uid"); |
| | | if (StringUtil.isNullOrEmpty(uid)) |
| | |
| | | String method = request.getParameter("Method"); |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | if (!Utils.signIsRight(request)) |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | |
| | | String uid = request.getParameter("Uid"); |
| | | if (StringUtil.isNullOrEmpty(uid)) |
| | |
| | | String method = request.getParameter("Method"); |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | if (!Utils.signIsRight(request)) { |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | return; |
| | | } |
| | | |
| | | String uid = request.getParameter("Uid"); |
| | | if (StringUtil.isNullOrEmpty(uid)) |
| | |
| | | break; |
| | | case "getVideoDetail": |
| | | homeParser.getVideoDetail(acceptData, request, out); |
| | | break; |
| | | case "getVideoEpisodeList"://获取剧集 |
| | | homeParser.getVideoEpisodeList(acceptData, request, out); |
| | | break; |
| | | case "isCollect": |
| | | homeParser.isCollected(acceptData, request, out); |
| | |
| | | String method = request.getParameter("Method"); |
| | | 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 + "", "", "", "", ""); |
| | |
| | | otherParser.addContact(acceptData, request, out); |
| | | } else if (method.equalsIgnoreCase("adRecommendRight")) { |
| | | otherParser.adRecommendRight(acceptData, request, out); |
| | | } else if (method.equalsIgnoreCase("playStatistic")) { |
| | | otherParser.playStatistic(acceptData, request, out); |
| | | } else if (method.equalsIgnoreCase("getFuntvAuthCode")) { |
| | | otherParser.getFuntvAuthCode(acceptData, request, out); |
| | | } |
| | | out.close(); |
| | | } |
| | |
| | | String method = request.getParameter("Method"); |
| | | 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)) |
| | |
| | | userParser.setPwd(acceptData, request, out); |
| | | } else if (method.equalsIgnoreCase("unRegister")) {//注销 |
| | | userParser.unRegister(acceptData, request, out); |
| | | } else if (method.equalsIgnoreCase("sendBindVerifyCode")) { |
| | | //发送电话绑定验证码 |
| | | commentParser.sendBindVerifyCode(acceptData, request, out); |
| | | } else if (method.equalsIgnoreCase("bindPhone")) { |
| | | //绑定电话号码 |
| | | commentParser.bindPhone(acceptData, request, out); |
| | | } else if (method.equalsIgnoreCase("bindQQ")) { |
| | | commentParser.bindQQ(acceptData, request, out); |
| | | } else if (method.equalsIgnoreCase("bindWX")) { |
| | | commentParser.bindWX(acceptData, request, out); |
| | | } else if (method.equalsIgnoreCase("allowOneKeyLogin")) { |
| | | commentParser.allowOneKeyLogin(acceptData, request, out); |
| | | } |
| | | |
| | | out.close(); |
| | | |
| | | } |
| | | |
| | | @RequestMapping(value = "/attention", method = RequestMethod.POST) |
| | |
| | | String method = request.getParameter("Method"); |
| | | 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 + "", "", "", "", ""); |
| | |
| | | String method = request.getParameter("Method"); |
| | | 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 + "", "", "", "", ""); |
| | |
| | | String method = request.getParameter("Method"); |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | |
| | | if (!Utils.signIsRight(request)) |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | |
| | | String uid = request.getParameter("Uid"); |
| | | if (StringUtil.isNullOrEmpty(uid)) |
| | |
| | | String method = request.getParameter("Method"); |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | // |
| | | if (!Utils.signIsRight(request)) |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | |
| | | String uid = request.getParameter("Uid"); |
| | | if (StringUtil.isNullOrEmpty(uid)) |
| | |
| | | String method = request.getParameter("Method"); |
| | | 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("签名错误")); |
| | | |
| | | switch (method) { |
| | | case "getConfig": |
| | | configParser.getConfig(acceptData, request, out); |
| | |
| | | String method = request.getParameter("Method"); |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | if (!Utils.signIsRight(request)) |
| | | out.print(JsonUtil.loadFalseJson("签名错误")); |
| | | |
| | | switch (method) { |
| | | case "getNewsTypeList": |
| | |
| | | out.close(); |
| | | } |
| | | |
| | | @Resource |
| | | private UserVideoParser userVideoParser; |
| | | |
| | | // 配置类接口 |
| | | @RequestMapping(value = "/userVideo", method = RequestMethod.POST) |
| | | public void userVideo(AcceptData acceptData, HttpServletRequest request, PrintWriter out) { |
| | | String method = request.getParameter("Method"); |
| | | if (StringUtil.isNullOrEmpty(method)) |
| | | return; |
| | | |
| | | switch (method) { |
| | | case "getWatchHistory": |
| | | userVideoParser.getWatchHistory(acceptData, request, out); |
| | | break; |
| | | case "deleteWatchHistory": |
| | | userVideoParser.deleteWatchHistory(acceptData, request, out); |
| | | break; |
| | | } |
| | | |
| | | out.close(); |
| | | } |
| | | |
| | | } |