From 0d8b55f6d78740cb5a189a4b025afc2f3826ed59 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Sun, 18 Feb 2024 15:20:08 +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 | 22 +++++-------------- .../application/out/OrderOutController.java | 2 ++ src/test/java/com/chint/CTripTest.java | 8 ++++--- 3 files changed, 12 insertions(+), 20 deletions(-) diff --git a/pom.xml b/pom.xml index f9e30f64..30cfa90d 100644 --- a/pom.xml +++ b/pom.xml @@ -13,8 +13,11 @@ 0.0.1-SNAPSHOT Route Route - - + + 8 + 8 + UTF-8 + org.springframework.boot @@ -85,21 +88,6 @@ app - - - org.springframework.boot - spring-boot-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.10.1 - - 1.8 - 1.8 - - - diff --git a/src/main/java/com/chint/application/out/OrderOutController.java b/src/main/java/com/chint/application/out/OrderOutController.java index 3a301987..ae717555 100644 --- a/src/main/java/com/chint/application/out/OrderOutController.java +++ b/src/main/java/com/chint/application/out/OrderOutController.java @@ -43,4 +43,6 @@ public class OrderOutController { return Result.Success(SUCCESS, orderQuery.pageQuery(queryData)); } + + } diff --git a/src/test/java/com/chint/CTripTest.java b/src/test/java/com/chint/CTripTest.java index a3932004..6abb7838 100644 --- a/src/test/java/com/chint/CTripTest.java +++ b/src/test/java/com/chint/CTripTest.java @@ -14,6 +14,7 @@ import com.chint.interfaces.rest.ctrip.dto.location.CTripCountry; import com.chint.interfaces.rest.ctrip.dto.login.CTripLoginParam; import com.chint.interfaces.rest.ctrip.dto.login.PCResponse; import com.chint.interfaces.rest.ctrip.dto.search.SearchOrderResponse; +import com.google.gson.Gson; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; @@ -102,7 +103,7 @@ public class CTripTest { System.out.println(loginRequest.h5Login()); } -// @Test + // @Test void estimateFlight() { BaseContext.setCurrentUser(user); FlightProductInfo flightProductInfo = new FlightProductInfo(); @@ -129,10 +130,11 @@ public class CTripTest { BookingRelatedApiRequest bookingRelatedApiRequest = estimateRequest .generateBaseRequest(null, trainProductInfo); BookingRelatedApiResponse estimate = estimateRequest.estimate(bookingRelatedApiRequest); - System.out.println(estimate); + Gson gson = new Gson(); + System.out.println(gson.toJson(estimate)); } -// @Test + // @Test void search() { BaseContext.setCurrentUser(user); SearchOrderResponse response = orderSearchRequest.searchOrder("actual12345622");