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();