From 48a204f4c90a80c0bb4e5ba1f9f0f42939cadba8 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 01 一月 2020 10:19:34 +0800 Subject: [PATCH] 用户资金记录bug修改,京东,拼多多小程序商品转链 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v1/InviteGetMoneyController.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/InviteGetMoneyController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/InviteGetMoneyController.java index 79b809b..235d4ff 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/InviteGetMoneyController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/InviteGetMoneyController.java @@ -7,6 +7,7 @@ import java.util.List; import javax.annotation.Resource; +import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @@ -18,7 +19,6 @@ import com.yeshi.fanli.entity.bus.homemodule.SwiperPicture; import com.yeshi.fanli.entity.bus.user.ThreeSale; import com.yeshi.fanli.entity.bus.user.UserInfo; -import com.yeshi.fanli.entity.bus.user.UserInfoExtra; import com.yeshi.fanli.entity.system.BusinessSystem; import com.yeshi.fanli.entity.system.SystemClientParams; import com.yeshi.fanli.exception.NotExistObjectException; @@ -126,7 +126,7 @@ data.put("activityRules", valueBr); data.put("inviteList", String.format("http://%s/%s/client/share/friends_new.html", Constant.systemCommonConfig.getProjectHost(), Constant.systemCommonConfig.getProjectName())); - List<SwiperPicture> pictureList = swiperPictureService.getByBannerCard("invite_top_banner"); + List<SwiperPicture> pictureList = swiperPictureService.getByBannerCardAndVersion("invite_top_banner",acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion())); if (pictureList != null && pictureList.size() > 0) { SwiperPicture picture = pictureList.get(0); com.alibaba.fastjson.JSONObject pictureJson = new com.alibaba.fastjson.JSONObject(); @@ -170,12 +170,13 @@ * @throws NotExistObjectException * @throws IOException */ + @RequestSerializableByKey(key = "'listInviteFriendImg-'+#uid") @RequestMapping(value = "/listInviteFriendImg", method = RequestMethod.POST) - public void listInviteFriendImg(AcceptData acceptData, Long uid, PrintWriter out) + public void listInviteFriendImg(AcceptData acceptData, Long uid, PrintWriter out, HttpServletRequest request) throws NotExistObjectException, IOException { JSONObject data = new JSONObject(); if (uid != null && !uid.equals("0")) { - List<String> imgList = spreadUserImgService.getUserSpreadImg(uid); + List<String> imgList = spreadUserImgService.getUserSpreadImg(uid, request); data.put("imgUrlList", JsonUtil.getSimpleGsonWithDate().toJson(imgList)); } -- Gitblit v1.8.0