From 4b80d2dab78d0cef3d149a0a11240b5e39b581a3 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 04 三月 2019 17:26:00 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java | 85 ++++++++++++------------------------------ 1 files changed, 25 insertions(+), 60 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 5805a49..a43d7f3 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 @@ -1636,14 +1636,8 @@ listswiper = swiperPictureService.getByBannerCard(swiperCard); - if (listswiper != null && listswiper.size() > 0) { - for (SwiperPicture swiperPicture : listswiper) { - swiperPicture.setBannerId(null); - swiperPicture.setCreatetime(null); - swiperPicture.setUpdatetime(null); - swiperPicture.setState(null); - swiperPicture.setRemark(null); - } + if (listswiper == null) { + listswiper = new ArrayList<SwiperPicture>(); } } catch (Exception e) { @@ -1661,12 +1655,6 @@ if (listSpecial != null && listSpecial.size() > 0) { for (Special special : listSpecial) { - special.setCreatetime(null); - special.setUpdatetime(null); - special.setState(null); - special.setRemark(null); - special.setCard(null); - special.setCardId(null); if ("闄愭椂绉掓潃".equals(special.getName())) { miaoShaSpecial = special; @@ -1680,6 +1668,7 @@ // 鍏朵粬涓撻 specialList.add(special); } + } } @@ -1713,10 +1702,12 @@ } JSONObject root = new JSONObject(); - root.put("banner", listswiper); - root.put("honest", honestList); - root.put("special", specialList); + + root.put("banner", JsonUtil.getApiCommonGson().toJson(listswiper)); + root.put("honest", JsonUtil.getApiCommonGson().toJson(honestList)); + root.put("special", JsonUtil.getApiCommonGson().toJson(specialList)); root.put("miaoSha", msJSON); + // 澧炲姞閭�璇锋湁濂� JSONObject invite = new JSONObject(); @@ -1988,7 +1979,7 @@ if (from != null && from.equals("miandan")) { // 鍏嶅崟鍟嗗搧 - hongBao = quanPrice.toString(); + hongBao = "楼" + quanPrice.toString(); } @@ -2065,18 +2056,18 @@ data.put("detailWebUrl", "http://apph5.yeshitv.com/apppage/goods_img.html?id=" + id); - - if (!StringUtil.isNullOrEmpty(uid) - && shareGoodsActivityOrderService.countShareGoodsActivityOrder(Long.parseLong(uid)) > 0) { - } else if(!"miandan".equals(from)) { - // 闈炲厤鍗曞晢鍝� - JSONObject shareActivity = new JSONObject(); - shareActivity.put("moneyDesc", "鏄ヨ妭鐙傛濂栭噾:楼" + TaoBaoUtil.getGoodsHongBaoMoney(tb, - new BigDecimal(hongBaoManageService.get("share_activity_proportion")))); - shareActivity.put("ruleDescPicture", "http://img.flqapp.com/resource/share_activity_img.png"); - - data.put("shareActivity", shareActivity); - } +// 鍙栨秷鍒嗕韩娲诲姩 +// if (!StringUtil.isNullOrEmpty(uid) +// && shareGoodsActivityOrderService.countShareGoodsActivityOrder(Long.parseLong(uid)) > 0) { +// } else if(!"miandan".equals(from)) { +// // 闈炲厤鍗曞晢鍝� +// JSONObject shareActivity = new JSONObject(); +// shareActivity.put("moneyDesc", "鏄ヨ妭鐙傛濂栭噾:楼" + TaoBaoUtil.getGoodsHongBaoMoney(tb, +// new BigDecimal(hongBaoManageService.get("share_activity_proportion")))); +// shareActivity.put("ruleDescPicture", "http://img.flqapp.com/resource/share_activity_img.png"); +// +// data.put("shareActivity", shareActivity); +// } out.print(JsonUtil.loadTrueResult(data)); @@ -2258,40 +2249,14 @@ List<Special> listSpecial = specialService.listPageBySystemAndCard(0, Integer.MAX_VALUE, specialCard, system.getId()); - if (listSpecial != null && listSpecial.size() > 0) { - for (Special special : listSpecial) { - special.setCreatetime(null); - special.setUpdatetime(null); - special.setState(null); - special.setRemark(null); - special.setCard(null); - special.setCardId(null); - - JumpDetailV2 jumpDetail = special.getJumpDetail(); - if (jumpDetail != null) { - jumpDetail.setId(null); - jumpDetail.setName(null); - } - // 閭�璇风櫥闄嗛獙璇� - if(jumpDetail.getType().equals("invite_web") && jumpDetail.getNeedLogin() - && uid != null) { - - UserInfoExtra userInfoExtra = userInfoExtraService.getUserInfoExtra(uid); - if (userInfoExtra != null && userInfoExtra.getInviteCode() != null - && userInfoExtra.getInviteCode().trim().length() > 0) { - - JSONObject params = new JSONObject(); - params.put("url", configService.get("invite_activation_success_url")); - special.setParams(params.toString()); - } - } - } + if (listSpecial == null) { + listSpecial = new ArrayList<Special>(); } JSONObject root = new JSONObject(); - root.put("special", listSpecial); - + root.put("special", JsonUtil.getApiCommonGson().toJson(listSpecial)); out.print(JsonUtil.loadTrueResult(root)); + } catch (Exception e) { e.printStackTrace(); } -- Gitblit v1.8.0