소스 검색

解决异常

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