yumeng hace 5 años
padre
commit
332cb9deae

+ 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";
     }