yanlong hace 8 meses
padre
commit
b84d30e0e7

+ 1 - 1
pom.xml

@@ -339,7 +339,7 @@
                 <artifactId>spring-boot-maven-plugin</artifactId>
                 <!--这里写上main方法所在类的路径-->
                 <configuration>
-                    <mainClass>com.train.ali.group.TrainAliGroupApplication</mainClass>
+                    <mainClass>com.tuigai.tuigai_tongcheng_api.TuigaiTongchengApiApplication</mainClass>
                     <includeSystemScope>true</includeSystemScope><!--外部进行打包-->
                 </configuration>
                 <executions>

+ 5 - 2
src/main/java/com/tuigai/tuigai_tongcheng_api/controller/OrderController.java

@@ -1,5 +1,6 @@
 package com.tuigai.tuigai_tongcheng_api.controller;
 
+import cn.hutool.core.codec.Base64;
 import com.alibaba.fastjson.JSONObject;
 import com.tuigai.tuigai_tongcheng_api.dto.RestMessage;
 import lombok.extern.slf4j.Slf4j;
@@ -16,14 +17,16 @@ public class OrderController {
 
     @PostMapping("/saveChangeOrder")
     public RestMessage saveChangeOrder(@RequestBody JSONObject jsonObject) {
-        log.info("改签订单:" + jsonObject.toJSONString());
+        String decodeStr = Base64.decodeStr(jsonObject.getString("data"));
+        log.info("改签订单:" + decodeStr);
         return RestMessage.result("ok");
     }
 
 
     @PostMapping("/saveRefundOrder")
     public RestMessage saveRefundOrder(@RequestBody JSONObject jsonObject) {
-        log.info("退票订单:" + jsonObject.toJSONString());
+        String decodeStr = Base64.decodeStr(jsonObject.getString("data"));
+        log.info("退票订单:" + decodeStr);
         return RestMessage.result("ok");
     }
 

+ 1 - 1
src/main/resources/application.yml

@@ -2,7 +2,7 @@ server:
   address: 0.0.0.0
   port: 8110
   servlet:
-    context-path: /traintuigai
+    context-path: /tuigai
     session:
       timeout: 30m
   # Tomcat specifics