Browse Source

获取视频

yumeng 5 years ago
parent
commit
787178037f

+ 4 - 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TestController.java

@@ -118,7 +118,7 @@ public class TestController {
 
     @Autowired
     private CtopOauthTokenMapper oauthTokenMapper;
-    static ExecutorService executorService = Executors.newFixedThreadPool(5);
+    static ExecutorService executorService = Executors.newFixedThreadPool(3);
 
     @GetMapping(value = "/gerCreative")
     public void gerCreative() {
@@ -130,10 +130,11 @@ public class TestController {
                 @Override
                 public void run() {
                     try {
-                      //  kuaishouInterfaceService.getCreativeList(token, null, null);
+                        //  kuaishouInterfaceService.getCreativeList(token, null, null);
                         kuaishouInterfaceService.getVideoList(token, null, null);
                         //3: 获取图片信息数据
-                     //   kuaishouInterfaceService.getImageList(token, startDate, endDate);
+                        kuaishouInterfaceService.getImageList(token, null, null);
+                        Thread.sleep(1 * 1000);
                     } catch (Exception e) {
                         e.printStackTrace();
                     }