修改编译版本
This commit is contained in:
parent
5c4fa0b63a
commit
b6207c278b
12
pom.xml
12
pom.xml
|
@ -13,11 +13,8 @@
|
|||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>Route</name>
|
||||
<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>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
@ -96,6 +93,11 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.10.1</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -118,7 +118,7 @@ public class CTripTest {
|
|||
System.out.println(estimate);
|
||||
}
|
||||
|
||||
// @Test
|
||||
@Test
|
||||
void estimateTrain() {
|
||||
BaseContext.setCurrentUser(user);
|
||||
TrainProductInfo trainProductInfo = new TrainProductInfo();
|
||||
|
|
Loading…
Reference in New Issue