From aa774af6df16ef11e1e34ac5aeed9aae0cb3e8e2 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 09 四月 2020 16:25:03 +0800 Subject: [PATCH] 团队分红完善 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java index 2114962..f570aaa 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java @@ -199,7 +199,7 @@ @Resource private UserVipConfigService userVipConfigService; - + @Resource private GoodsEvaluateService goodsEvaluateService; @@ -265,6 +265,7 @@ app.setPid(TaoBaoConstant.TAOBAO_COMMON_PID); app.setAdzoneId(TaoBaoConstant.TAOBAO_COMMON_PID.split("_")[3]); goods = TaoKeApiUtil.searchGoodsDetail(id, app); + final TaoBaoGoodsBrief finalGoods = goods; if (goods != null) { ThreadUtil.run(new Runnable() { @@ -371,7 +372,11 @@ // 澶ф窐瀹㈠晢鍝佽繃婊� try { - goods = daTaoKeGoodsDetailV2Service.filterTaoBaoGoods(goods); + goods = daTaoKeGoodsDetailV2Service.filterTaoBaoGoods(goods, acceptData.getPlatform(), + acceptData.getVersion()); + +// goods = daTaoKeGoodsDetailV2Service.filterTaoBaoGoods(goods); + } catch (Exception e) { LogHelper.errorDetailInfo(e); } @@ -613,7 +618,7 @@ */ @RequestMapping(value = "getDetailJD") public void getDetialJD(AcceptData acceptData, Long id, Long uid, String from, PrintWriter out) { -// uid=2255993L; + // uid=2255993L; // 绯荤粺楠岃瘉 BusinessSystem system = businessSystemService.getBusinessSystemCache(acceptData.getPlatform(), acceptData.getPackages()); @@ -809,7 +814,7 @@ out.print(JsonUtil.loadTrueResult(object.toString())); final JDGoods goods = jdGoods; - final Long fuid=uid; + final Long fuid = uid; ThreadUtil.run(new Runnable() { public void run() { // 娣诲姞娴忚璁板綍 @@ -818,7 +823,7 @@ } catch (Exception e) { e.printStackTrace(); } - + try { goodsEvaluateService.updateJDGoods(goods); } catch (Exception e) { @@ -1002,7 +1007,7 @@ } catch (Exception e) { e.printStackTrace(); } - + try { goodsEvaluateService.updatePDDGoods(pddGoods); } catch (Exception e) { @@ -1220,6 +1225,10 @@ } jumpLink = JDApiUtil.convertLinkWithSubUnionId(materialId, couponUrl, JDApiUtil.POSITION_FANLI + "", uid + ""); + if (jumpLink == null) { + jumpLink = JDApiUtil.convertLinkWithSubUnionId(materialId, null, JDApiUtil.POSITION_FANLI + "", + uid + ""); + } } else { jumpLink = JDApiUtil.convertLinkWithSubUnionId(materialId, couponUrl, JDApiUtil.POSITION_FANLI + "", uid + ""); -- Gitblit v1.8.0