Ewm接口切换正式生产环境

This commit is contained in:
杨学谦 2025-10-11 16:46:42 +08:00
parent e49d4bafff
commit 497ea3cceb

View File

@ -22,7 +22,7 @@ import org.springframework.stereotype.Service;
@Slf4j @Slf4j
public class EwmApiServiceImpl implements IEwmApiService { public class EwmApiServiceImpl implements IEwmApiService {
private final HttpClient httpClient;// http客户端 private final HttpClient httpClient;// http客户端
private final AppCommon appCommon;// 应用共通 private final AppCommon appCommon;// 应用共通asrs/mom@123456
/** /**
* 发送载具入库请求到EWM系统 * 发送载具入库请求到EWM系统
@ -33,7 +33,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
public EwmApiLocalResponse sendVehicleForIn(SendEwmVehicleForInRequest request) { public EwmApiLocalResponse sendVehicleForIn(SendEwmVehicleForInRequest request) {
try { try {
// 构建Basic Auth认证信息 // 构建Basic Auth认证信息
String auth = "mom:test@123"; String auth = "asrs:mom@123456";
String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes()); String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes());
// 设置http请求 // 设置http请求
@ -70,7 +70,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
public EwmApiBackResponse sendWarehouseInCompleted(SendWarehouseInCompletedRequest request) { public EwmApiBackResponse sendWarehouseInCompleted(SendWarehouseInCompletedRequest request) {
try { try {
// 构建Basic Auth认证信息 // 构建Basic Auth认证信息
String auth = "mom:test@123"; String auth = "asrs:mom@123456";
String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes()); String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes());
// 设置http请求 // 设置http请求
@ -98,7 +98,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
public EwmApiBackResponse sendWarehouseOutCompleted(SendWarehouseOutCompletedRequest request) { public EwmApiBackResponse sendWarehouseOutCompleted(SendWarehouseOutCompletedRequest request) {
try { try {
// 构建Basic Auth认证信息 // 构建Basic Auth认证信息
String auth = "mom:test@123"; String auth = "asrs:mom@123456";
String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes()); String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes());
// 设置http请求 // 设置http请求
@ -134,7 +134,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
String finalUrl = baseUrl.replace("{palletNo}", request.getContainerNo()); // 示例具体字段名需根据实际类确定 String finalUrl = baseUrl.replace("{palletNo}", request.getContainerNo()); // 示例具体字段名需根据实际类确定
// 构建Basic Auth认证信息 // 构建Basic Auth认证信息
String auth = "mom:test@123"; String auth = "asrs:mom@123456";
String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes()); String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes());
// 设置http请求将认证信息放在token字段中 // 设置http请求将认证信息放在token字段中
@ -162,7 +162,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
public EwmApiStockResponse getEwmStock(SendEwmGetStockInformationRequest request) { public EwmApiStockResponse getEwmStock(SendEwmGetStockInformationRequest request) {
try { try {
// 构建Basic Auth认证信息 // 构建Basic Auth认证信息
String auth = "mom:test@123"; String auth = "asrs:mom@123456";
String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes()); String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes());
// 设置http请求 // 设置http请求
@ -189,7 +189,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
public EwmApiBackResponse sendEwmCheckContainerNo(SendEwmCheckContainerNo request) { public EwmApiBackResponse sendEwmCheckContainerNo(SendEwmCheckContainerNo request) {
try { try {
// 构建Basic Auth认证信息 // 构建Basic Auth认证信息
String auth = "mom:test@123"; String auth = "asrs:mom@123456";
String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes()); String encodedAuth = java.util.Base64.getEncoder().encodeToString(auth.getBytes());
// 设置http请求 // 设置http请求