From f08a2d8f161af75e923b89cfe2ca393cf0635811 Mon Sep 17 00:00:00 2001 From: ljl Date: Wed, 15 Nov 2023 16:05:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ms-biz/src/main/java/com/ms/biz/util/DDApi.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ms-biz/src/main/java/com/ms/biz/util/DDApi.java b/ms-biz/src/main/java/com/ms/biz/util/DDApi.java index cf27fce..1671060 100644 --- a/ms-biz/src/main/java/com/ms/biz/util/DDApi.java +++ b/ms-biz/src/main/java/com/ms/biz/util/DDApi.java @@ -31,9 +31,13 @@ import com.doudian.open.api.supplyCenter_refund_operate.SupplyCenterRefundOperat import com.doudian.open.api.supplyCenter_refund_operate.data.SupplyCenterRefundOperateData; import com.doudian.open.api.supplyCenter_refund_operate.param.SupplyCenterRefundOperateParam; import com.doudian.open.core.DoudianOpRequest; +import com.doudian.open.core.GlobalConfig; import com.ms.biz.tool.CommonTool; import lombok.extern.slf4j.Slf4j; +import java.text.SimpleDateFormat; +import java.util.Date; + @Slf4j public class DDApi { @@ -122,6 +126,15 @@ public class DDApi { } private static T execute(DoudianOpRequest request) { + GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-USE-BOE", "1"); + GlobalConfig.getGlobalConfig().addHttpRequestHeader("Origin-From", "djt_prod"); + GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-TT-ENV", "boe_supply_center"); + +// SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); +// GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-USE-PPE", "1"); +// GlobalConfig.getGlobalConfig().addHttpRequestHeader("Origin-From", "djt_ppe_" + format.format(new Date())); +// GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-TT-ENV", "ppe_supply_center"); + log.info("DdParam:{}", JSONObject.toJSONString(request.getParam())); log.info("DdRequest:{}", JSONObject.toJSONString(request)); T response = request.execute();