|
@@ -0,0 +1,52 @@
|
|
|
+package com.zswl.cloud.springBtach.server.boot;
|
|
|
+
|
|
|
+import cn.hutool.json.JSONObject;
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
+import com.github.microservice.auth.client.content.ResultContent;
|
|
|
+import com.github.microservice.auth.client.service.EnterpriseService;
|
|
|
+import com.zhongshu.payment.client.service.OrderService;
|
|
|
+import com.zswl.cloud.springBtach.server.core.api.ypp.YppApi;
|
|
|
+import com.zswl.cloud.springBtach.server.core.controller.TestSpringBatch;
|
|
|
+import com.zswl.cloud.springBtach.server.core.service.OrderServiceImp;
|
|
|
+import org.junit.jupiter.api.Test;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+
|
|
|
+@SpringBootTest
|
|
|
+public class ServerApplicationTests {
|
|
|
+ @Autowired
|
|
|
+ YppApi piaoPiaoApi;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ TestSpringBatch testSpringBatch;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ OrderServiceImp orderService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ OrderService orderService1;
|
|
|
+
|
|
|
+ EnterpriseService enterpriseService;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void test1() {
|
|
|
+
|
|
|
+// JSONObject movies = piaoPiaoApi.movies("9", "0", "20");
|
|
|
+// System.out.println(movies);
|
|
|
+ System.out.println(piaoPiaoApi.movie_detail("194856"));
|
|
|
+
|
|
|
+ JSONObject citys = piaoPiaoApi.get_citys();
|
|
|
+//
|
|
|
+ JSONUtil.toJsonStr(piaoPiaoApi.movies("103", "1", "40"));
|
|
|
+// System.out.println(citys);
|
|
|
+// System.out.println("dddddddddddddddddddddd");
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void test2() {
|
|
|
+
|
|
|
+ ResultContent<Integer> number = orderService1.number("1111", "111");
|
|
|
+ System.out.println(number.getContent());
|
|
|
+
|
|
|
+ }
|
|
|
+}
|