From 0912f56a392bdf48315747c64ec0c18bf0aa29a6 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 30 六月 2021 19:07:11 +0800 Subject: [PATCH] 礼金红包兼容 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v1/GoodsController.java | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/GoodsController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/GoodsController.java index 8030e07..758434c 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/GoodsController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/GoodsController.java @@ -9,6 +9,7 @@ import com.yeshi.fanli.entity.SystemFunction; import com.yeshi.fanli.entity.SystemPIDInfo; import com.yeshi.fanli.exception.taobao.TaoBaoConvertLinkException; +import com.yeshi.fanli.lijin.manager.UserLijinMnager; import com.yeshi.fanli.service.manger.PIDManager; import com.yeshi.fanli.service.manger.goods.TaoBaoLinkManager; import com.yeshi.fanli.util.SystemInfoUtil; @@ -98,6 +99,9 @@ @Resource private PIDManager pidManager; + @Resource + private UserLijinMnager userLijinMnager; + private void doTaoLiJinBuy(AcceptData acceptData, Long uid, Long auctionId, PrintWriter out) { JSONObject data = new JSONObject(); TaoBaoLink taoBaoLink = null; @@ -175,6 +179,12 @@ } if (!SystemInfoUtil.hasFunctions(acceptData.getSystem(), SystemFunction.fanli)) { + getTaoBaoLinkWithoutFanLi(acceptData, auctionId, from, source, request, out); + return; + } + + //棰嗗埜 + if (uid == null) { getTaoBaoLinkWithoutFanLi(acceptData, auctionId, from, source, request, out); return; } @@ -331,6 +341,9 @@ data.put("link", link); if (clientTBPid != null) data.put("tbPidInfo", clientTBPid); + + data.put("userLevel", userLijinMnager.getUserLevelInfo(uid, acceptData.getSystem())); + out.print(JsonUtil.loadTrueResult(data)); TaoKeLogHelper.convertLinkInfo( @@ -394,6 +407,8 @@ data.put("native", true); } + data.put("userLevel", userLijinMnager.getUserLevelInfo(uid, acceptData.getSystem())); + out.print(JsonUtil.loadTrueResult(data)); } else { out.print(JsonUtil.loadFalseResult(1, "璇锋眰澶辫触")); -- Gitblit v1.8.0