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