From 3f76ec837b343e5a8538f2ce50010714d16cdeef Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期四, 07 十一月 2019 12:24:40 +0800 Subject: [PATCH] 红包领取 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/RedPackControllerV2.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/RedPackControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/RedPackControllerV2.java index dac93c4..8af1684 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/RedPackControllerV2.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/RedPackControllerV2.java @@ -356,12 +356,14 @@ } JSONObject data = new JSONObject(); + data.put("winMoney", redPackWinInviteService.getRewardMoney(uid).setScale(2)); data.put("count", redPackWinInviteService.countRewardRecord(uid)); data.put("list", JsonUtil.getApiCommonGson().toJson(list)); if (!StringUtil.isNullOrEmpty(callback)) { out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(data))); - } else + } else { out.print(JsonUtil.loadTrueResult(data)); + } } /** @@ -413,6 +415,8 @@ out.print(JsonUtil.loadFalseResult(1, "绾㈠寘宸茶鎶㈠厜")); return; } + winDetail.setLogo(Constant.systemCommonConfig.getDefaultPortrait()); + winDetail.setLogoLight(Constant.systemCommonConfig.getDefaultPortrait()); JSONObject params = new JSONObject(); params.put("url", redPackConfigService.getValueByKey("goods_shop_link_h5")); @@ -422,7 +426,7 @@ winDetail.setTips(redPackConfigService.getValueByKey("new_user_win_tips")); // 2銆侀《閮ㄨ疆鎾浘 - List<SwiperPicture> oldtopPicList = swiperPictureService.getByBannerCard("index_top"); + List<SwiperPicture> oldtopPicList = swiperPictureService.getByBannerCard("redpack_win_detail_banner"); List<SwiperPicture> topPicList = new ArrayList<>(); if (oldtopPicList != null && oldtopPicList.size() > 0) topPicList.addAll(oldtopPicList); -- Gitblit v1.8.0