From 35b9d7e6dbd83ef2e462325de2fd87f2de5efda1 Mon Sep 17 00:00:00 2001 From: xhxu Date: Fri, 15 Apr 2022 13:50:41 +0800 Subject: [PATCH] //update test --- .../douyin/web/api/impl/TtWebProductServiceImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/douyin/web/api/impl/TtWebProductServiceImpl.java b/mallinkService/src/main/java/com/iformall/douyin/web/api/impl/TtWebProductServiceImpl.java index 9700939c7..9b414fbbf 100644 --- a/mallinkService/src/main/java/com/iformall/douyin/web/api/impl/TtWebProductServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/douyin/web/api/impl/TtWebProductServiceImpl.java @@ -62,9 +62,11 @@ public class TtWebProductServiceImpl implements TtWebProductService { final TtWebGetRequestExecutor executor = new TtWebGetRequestExecutor(this.service.getRequestHttp()); String apiUrl = this.service.getTtWebConfig().getApiBegin().getPrefix() + this.GET_SPU_GET; String param = "spu_ext_id=" + spuGet.getSpuExtId() + - "need_spu_draft=" + spuGet.isNeedSpuDraft() + - "spu_draft_count=" + spuGet.getSpuDraftcount() + - "spu_draft_count=" + spuGet.getSupplierIdsForFilterReason().toString(); + "&need_spu_draft=" + spuGet.isNeedSpuDraft() + + "&spu_draft_count=" + spuGet.getSpuDraftcount(); + if(spuGet.getSupplierIdsForFilterReason() != null && spuGet.getSupplierIdsForFilterReason().size() > 0){ + param += "&spu_draft_count=" + spuGet.getSupplierIdsForFilterReason().toString(); + } String result = this.service.execute(executor, apiUrl, param); return TtSpuGetResult.fromJson(result); }