Browse Source

Merge remote-tracking branch 'origin/master'

syh 4 years ago
parent
commit
caf12d494f
1 changed files with 16 additions and 7 deletions
  1. 16 7
      jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

+ 16 - 7
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -60,15 +60,21 @@ public class SampleTest {
     private IKuaiShouHistoryReportTaskService kuaiShouHistoryReportTaskService;
     @Autowired
     private ICtopOauthTokenService tokenService;
+    @Autowired
+    private IKuaishouInterfaceService iKuaishouInterfaceService;
 
     @Test
     public void loadBytedanceCreativeData() {
-        QueryWrapper<CtopOauthToken> queryWrapper = new QueryWrapper<>();
+
+        CtopOauthToken tokenByAccountId = oauthTokenService.getTokenByAccountId(9589905L);
+        iKuaishouInterfaceService.getGroupList(tokenByAccountId, null, null);
+
+      /*  QueryWrapper<CtopOauthToken> queryWrapper = new QueryWrapper<>();
         queryWrapper.eq("media_id", 2);
         List<CtopOauthToken> list = oauthTokenService.list(queryWrapper);
         for (CtopOauthToken token : list) {
             kuaiShouHistoryReportTaskService.createTask(token.getAccountId(), token.getAccessToken(), "2020-09-20", "2020-09-20", "daily");
-        }
+        }*/
     }
 
     @Autowired
@@ -264,12 +270,13 @@ public class SampleTest {
 
     @Autowired
     private IBytedanceReportService bytedanceReportService;
+
     @Test
-    public void loadBytedanceVideoReportData(){
+    public void loadBytedanceVideoReportData() {
         Date getDate = DateUtils.addDay(new Date(), -1);
         String date = DateUtils.formatDate(getDate);
         List<CtopOauthToken> tokens = tokenService.selectToutiaoToken();
-        for (CtopOauthToken token:tokens){
+        for (CtopOauthToken token : tokens) {
             bytedanceReportService.bytedanceVideoMaterialReport(token, date, date);
         }
     }
@@ -350,16 +357,18 @@ public class SampleTest {
 
     @Autowired
     private IKuaiShouCommentService kuaiShouCommentService;
+
     @Test
-    public void kuaishouDeleteComment(){
+    public void kuaishouDeleteComment() {
         kuaiShouCommentService.shieldComment(8018853L);
     }
+
     @Autowired
     private IByteDanceVideoReportDailyService videoReportDailyService;
 
     @Test
-    public void formatVideoReportData(){
-        for(int i=1;i<45;i++){
+    public void formatVideoReportData() {
+        for (int i = 1; i < 45; i++) {
             Date getDate = DateUtils.addDay(new Date(), -i);
             String date = DateUtils.formatDate(getDate);
             videoReportDailyService.videoInfoList(date, date);