| | |
| | | private BanQuanService banQuanService; |
| | | @Resource |
| | | private VideoInfoService videoInfoService; |
| | | |
| | | @Resource |
| | | private SolrAlbumDataManager solrDataManager; |
| | | @Resource |
| | | private ConfigParser configParser; |
| | | |
| | | public void getUid(AcceptData acceptData, HttpServletRequest request, PrintWriter out) { |
| | | DetailSystem detailSystem = systemService.getDetailSystemByPackage(acceptData.getPackageName()); |
| | |
| | | object.put("Uid", uid); |
| | | object.put("Portrait", userInfo.getPortrait()); |
| | | object.put("Nickname", userInfo.getNickname()); |
| | | object.put("TopIcon", map.get("top_icon")); |
| | | |
| | | object.put("ZiXun", map.get("zixun_url")); |
| | | if (acceptData.getPlatform().equalsIgnoreCase("ios") && !"中国".equalsIgnoreCase(userInfo.getCountry()))// 正在审核的版本 |
| | | object.put("CommentUrl", ""); |
| | |
| | | object.put("WXShareIcon", map.get("wx_share_icon")); |
| | | object.put("WXShareUrl", map.get("wx_share_url")); |
| | | object.put("WXShareContent", map.get("wx_share_content")); |
| | | object.put("TuiGuang", map.get("taobao_tuiguang")); |
| | | |
| | | if ("qq".equalsIgnoreCase(acceptData.getChannel())) { |
| | | object.put("TopIcon", ""); |
| | | object.put("TuiGuang", ""); |
| | | } else { |
| | | object.put("TuiGuang", map.get("taobao_tuiguang")); |
| | | object.put("TopIcon", map.get("top_icon")); |
| | | } |
| | | object.put("SOHU_partner", detailSystem.getSohuPartner()); |
| | | object.put("SOHU_key", detailSystem.getSohuKey()); |
| | | |
| | |
| | | fullVideoVersion = json.optInt(acceptData.getChannel().toLowerCase(), 0); |
| | | } |
| | | |
| | | if (acceptData.getVersion() >= fullVideoVersion) {// 是否屏蔽详情页全屏广告 |
| | | |
| | | String type = configParser.getAdShowType("ad_video_detail_full_video", acceptData.getChannel(), acceptData.getVersion(), map); |
| | | |
| | | if (!StringUtil.isNullOrEmpty(type)) {// 是否屏蔽详情页全屏广告 |
| | | JSONObject adType = JSONObject.fromObject(map.get("ad_type")); |
| | | adType.put("videoDetailSplashAd", true); |
| | | object.put("adType", adType.toString()); |
| | | } else { |
| | | JSONObject adType = JSONObject.fromObject(map.get("ad_type")); |
| | | adType.put("videoDetailSplashAd", false); |
| | | object.put("adType", adType.toString()); |
| | |
| | | } |
| | | |
| | | if (!verifyCode.equalsIgnoreCase(request.getSession().getAttribute(email) + "")) { |
| | | out.print(JsonUtil.loadTrueJson("验证码错误")); |
| | | out.print(JsonUtil.loadFalseJson("验证码错误")); |
| | | return; |
| | | } |
| | | |