From 0f704a4650edd60cea2e57778b6703509376a42c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 08 三月 2024 17:48:09 +0800 Subject: [PATCH] 京东API(大淘客补充)优化/日志优化 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java index fa0fbd9..fdbeb42 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java @@ -890,6 +890,18 @@ if (darray != null && darray.size() > 0) { String auctionId = darray.optJSONObject(0).optString("item_id"); result.getTaoBaoGoodsBriefs().set(0, TaoKeApiUtil.searchGoodsDetail(auctionId)); + }else{ + // 澶ф窐瀹㈡棤娉曟悳绱㈠埌锛屽氨灏嗘渶鍚庝竴涓瓧鍘绘帀鐒跺悗鍐嶆悳绱� + String originText = sf.getKey(); + sf.setKey(originText.substring(0,originText.length()-1)); + result = TaoBaoUtil.search(sf, specialId, null); +// if(result.getTaoBaoGoodsBriefs() != null) +// for(TaoBaoGoodsBrief tb: result.getTaoBaoGoodsBriefs()){ +// if(originText.equalsIgnoreCase(tb.getTitle())){ +// +// break; +// } +// } } } taoBaoGoodsCacheUtil.saveSearchResult(sf, result); -- Gitblit v1.8.0