修改编译版本

This commit is contained in:
lulz1 2024-02-18 15:01:36 +08:00
parent 5c4fa0b63a
commit b6207c278b
3 changed files with 9 additions and 7 deletions

12
pom.xml
View File

@ -13,11 +13,8 @@
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>Route</name> <name>Route</name>
<description>Route</description> <description>Route</description>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
@ -96,6 +93,11 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

View File

@ -42,7 +42,7 @@ public class CTripEstimateRequest {
public BookingRelatedApiRequest generateBaseRequest(FlightProductInfo flightProductInfo, TrainProductInfo trainProductInfo) { public BookingRelatedApiRequest generateBaseRequest(FlightProductInfo flightProductInfo, TrainProductInfo trainProductInfo) {
BookingRelatedApiRequest bookingRelatedApiRequest = new BookingRelatedApiRequest(); BookingRelatedApiRequest bookingRelatedApiRequest = new BookingRelatedApiRequest();
String token = tokenRequest.getToken(1); String token = tokenRequest.getToken();
bookingRelatedApiRequest.setApiName(apiName); bookingRelatedApiRequest.setApiName(apiName);
bookingRelatedApiRequest.setLanguage(LANGUAGE_CN); bookingRelatedApiRequest.setLanguage(LANGUAGE_CN);
bookingRelatedApiRequest.setAuthInfo(AuthInfo.of(C_TRIP_APP_KEY, token)); bookingRelatedApiRequest.setAuthInfo(AuthInfo.of(C_TRIP_APP_KEY, token));

View File

@ -118,7 +118,7 @@ public class CTripTest {
System.out.println(estimate); System.out.println(estimate);
} }
// @Test @Test
void estimateTrain() { void estimateTrain() {
BaseContext.setCurrentUser(user); BaseContext.setCurrentUser(user);
TrainProductInfo trainProductInfo = new TrainProductInfo(); TrainProductInfo trainProductInfo = new TrainProductInfo();