yumeng преди 5 години
родител
ревизия
332cb9deae
променени са 1 файла, в които са добавени 9 реда и са изтрити 3 реда
  1. 9 3
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TestController.java

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

@@ -104,9 +104,15 @@ public class TestController {
         tokenQueryWrapper.eq("media_id", 2);
         List<CtopOauthToken> ctopOauthTokens = tokenMapper.selectList(tokenQueryWrapper);
         for (CtopOauthToken token : ctopOauthTokens) {
-            kuaishouInterfaceService.getVideoList(token, null, null);
-            kuaishouInterfaceService.getImageList(token, null, null);
-            kuaishouInterfaceService.getCreativeList(token, null, null);
+            try {
+                kuaishouInterfaceService.getVideoList(token, null, null);
+                kuaishouInterfaceService.getImageList(token, null, null);
+                kuaishouInterfaceService.getCreativeList(token, null, null);
+
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+
         }
         return "Success";
     }