| | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import com.newvideo.vo.AcceptData; |
| | | import org.apache.commons.httpclient.HttpClient; |
| | | import org.apache.commons.httpclient.HttpException; |
| | | import org.apache.commons.httpclient.methods.GetMethod; |
| | |
| | | String type = request.getParameter("Type"); |
| | | String packageName = request.getParameter("Package"); |
| | | String videoId = request.getParameter("VideoId"); |
| | | String channel= request.getParameter("Channel"); |
| | | |
| | | AcceptData acceptData=new AcceptData(); |
| | | acceptData.setChannel(channel); |
| | | acceptData.setMethod(method); |
| | | acceptData.setPackage(packageName); |
| | | acceptData.setPlatform(platform); |
| | | acceptData.setSystem(system); |
| | | acceptData.setVersion(Integer.parseInt(version)); |
| | | |
| | | |
| | | if (StringUtil.isNullOrEmpty(method)) { |
| | | out.print(JsonUtil.loadFalseJson("请上传Method")); |
| | |
| | | |
| | | DetailSystem detailSystem = systemService.getDetailSystemByPackage(packageName); |
| | | |
| | | PlayUrl pu = videoDeailUtil.getPlayUrl(detailSystem.getId(), id, type, Integer.parseInt(resourceId), videoId); |
| | | PlayUrl pu = videoDeailUtil.getPlayUrl(acceptData,detailSystem.getId(), id, type, Integer.parseInt(resourceId), videoId); |
| | | |
| | | if (pu != null) { |
| | | if (!StringUtil.isNullOrEmpty(pu.getUrl())) |