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