From b6207c278b14791d88a1b427a5946cf0ce6d2acd Mon Sep 17 00:00:00 2001 From: lulz1 Date: Sun, 18 Feb 2024 15:01:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 12 +++++++----- .../interfaces/rest/ctrip/CTripEstimateRequest.java | 2 +- src/test/java/com/chint/CTripTest.java | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 3ccfd804..f9e30f64 100644 --- a/pom.xml +++ b/pom.xml @@ -13,11 +13,8 @@ 0.0.1-SNAPSHOT Route Route - - 8 - 8 - UTF-8 - + + org.springframework.boot @@ -96,6 +93,11 @@ org.apache.maven.plugins maven-compiler-plugin + 3.10.1 + + 1.8 + 1.8 + diff --git a/src/main/java/com/chint/interfaces/rest/ctrip/CTripEstimateRequest.java b/src/main/java/com/chint/interfaces/rest/ctrip/CTripEstimateRequest.java index 7926f974..c9510b51 100644 --- a/src/main/java/com/chint/interfaces/rest/ctrip/CTripEstimateRequest.java +++ b/src/main/java/com/chint/interfaces/rest/ctrip/CTripEstimateRequest.java @@ -42,7 +42,7 @@ public class CTripEstimateRequest { public BookingRelatedApiRequest generateBaseRequest(FlightProductInfo flightProductInfo, TrainProductInfo trainProductInfo) { BookingRelatedApiRequest bookingRelatedApiRequest = new BookingRelatedApiRequest(); - String token = tokenRequest.getToken(1); + String token = tokenRequest.getToken(); bookingRelatedApiRequest.setApiName(apiName); bookingRelatedApiRequest.setLanguage(LANGUAGE_CN); bookingRelatedApiRequest.setAuthInfo(AuthInfo.of(C_TRIP_APP_KEY, token)); diff --git a/src/test/java/com/chint/CTripTest.java b/src/test/java/com/chint/CTripTest.java index 68b4a2ff..a3932004 100644 --- a/src/test/java/com/chint/CTripTest.java +++ b/src/test/java/com/chint/CTripTest.java @@ -118,7 +118,7 @@ public class CTripTest { System.out.println(estimate); } -// @Test + @Test void estimateTrain() { BaseContext.setCurrentUser(user); TrainProductInfo trainProductInfo = new TrainProductInfo();