From 4114e871bcb3dce771b6aed64a1027d0bbb95ca6 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 16 五月 2019 15:28:37 +0800 Subject: [PATCH] 增加动态用户 --- fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java | 39 +++++++++++++++++++++++---------------- 1 files changed, 23 insertions(+), 16 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java index c62d7fa..a815927 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java @@ -1602,6 +1602,8 @@ if ("ios".equalsIgnoreCase(platform)) { root.put("htmlLink", configService.get("index_html_link_ios")); } + + root.put("spikeGoods", getSpikeGoodsContent(acceptData)); out.print(JsonUtil.loadTrueResult(root)); } catch (Exception e) { @@ -1648,15 +1650,7 @@ return swiperList; } - /** - * 闄愭椂绉掓潃 1.5.3 - * - * @param acceptData - * @param out - */ - @RequestMapping(value = "getSpikeGoods") - public void getSpikeGoods(AcceptData acceptData, PrintWriter out) { - + private JSONObject getSpikeGoodsContent(AcceptData acceptData) { // 涓嬩竴娆″�掕鏃剁殑鏃堕棿 int type = qualityFlashSaleService.getNowType() + 1; int hour = 0; @@ -1735,14 +1729,27 @@ } Long endTime = nextTime.getTimeInMillis() - java.lang.System.currentTimeMillis(); - JSONObject params = new JSONObject(); - params.put("url", configService.get("spike_goods_link")); - JumpDetailV2 jumpDetail = jumpDetailV2Service.getByTypeCache("web"); - JSONObject root = new JSONObject(); root.put("time", nextTime.getTimeInMillis()); root.put("endTime", endTime > 0? endTime : 0); root.put("listgoods", array); + + return root; + } + + /** + * 闄愭椂绉掓潃 1.5.3 + * + * @param acceptData + * @param out + */ + @RequestMapping(value = "getSpikeGoods") + public void getSpikeGoods(AcceptData acceptData, PrintWriter out) { + JSONObject params = new JSONObject(); + params.put("url", configService.get("spike_goods_link")); + JumpDetailV2 jumpDetail = jumpDetailV2Service.getByTypeCache("web"); + + JSONObject root = getSpikeGoodsContent(acceptData); root.put("params", params); root.put("jumpDetail", jumpDetail); out.print(JsonUtil.loadTrueResult(root)); @@ -2020,8 +2027,8 @@ goodsJson.put("hongBao", hongBao); List<ClientTextStyleVO> labels = new ArrayList<>(); - labels.add(new ClientTextStyleVO("鏍囩娴嬭瘯鍐呭", "#FF0000")); - labels.add(new ClientTextStyleVO("鏍囩娴嬭瘯鍐呭", "#00FF00")); + labels.add(new ClientTextStyleVO("鏍囩鍐呭", "#F14242")); + labels.add(new ClientTextStyleVO("鏍囩鍐呭", "#00FF00")); goodsJson.put("labels", labels); data.put("tbPidInfo", clientTBPid); @@ -2062,7 +2069,7 @@ goodsJson.put("shopInfo", tbShopInfo); } - goodsJson.put("fanliValid", true);// 鏄惁鏈夎繑鍒� + goodsJson.put("fanliValid",Math.random()>0.5? true:false);// 鏄惁鏈夎繑鍒� // 鍒嗕韩璺緞 String shareUrl = String.format("%s?id=" + tb.getAuctionId(), Constant.systemCommonConfig.getAppShareInfoUrl()); -- Gitblit v1.8.0