|
|
@ -41,6 +41,7 @@ import com.doudian.open.api.supplyCenter_refund_operate.param.SupplyCenterRefund
|
|
|
|
import com.doudian.open.core.DoudianOpRequest;
|
|
|
|
import com.doudian.open.core.DoudianOpRequest;
|
|
|
|
import com.doudian.open.core.GlobalConfig;
|
|
|
|
import com.doudian.open.core.GlobalConfig;
|
|
|
|
import com.ms.biz.tool.CommonTool;
|
|
|
|
import com.ms.biz.tool.CommonTool;
|
|
|
|
|
|
|
|
import com.ms.biz.tool.SystemTool;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
@ -152,10 +153,12 @@ public class DDApi {
|
|
|
|
// GlobalConfig.getGlobalConfig().addHttpRequestHeader("Origin-From", "djt_prod");
|
|
|
|
// GlobalConfig.getGlobalConfig().addHttpRequestHeader("Origin-From", "djt_prod");
|
|
|
|
// GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-TT-ENV", "boe_supply_center");
|
|
|
|
// GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-TT-ENV", "boe_supply_center");
|
|
|
|
|
|
|
|
|
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
if (!SystemTool.isProdEnv()) {
|
|
|
|
GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-USE-PPE", "1");
|
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
GlobalConfig.getGlobalConfig().addHttpRequestHeader("Origin-From", "djt_ppe_" + format.format(new Date()));
|
|
|
|
GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-USE-PPE", "1");
|
|
|
|
GlobalConfig.getGlobalConfig().addHttpRequestHeader("X-TT-ENV", "ppe_supply_center");
|
|
|
|
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("DdParam:{}", JSONObject.toJSONString(request.getParam()));
|
|
|
|
log.info("DdRequest:{}", JSONObject.toJSONString(request));
|
|
|
|
log.info("DdRequest:{}", JSONObject.toJSONString(request));
|
|
|
|