|
@@ -105,7 +105,7 @@ public class TestController {
|
|
|
|
|
|
//1:查询当日数据
|
|
//1:查询当日数据
|
|
QueryWrapper<CtopOauthToken> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<CtopOauthToken> queryWrapper = new QueryWrapper<>();
|
|
- queryWrapper.eq("media_id",2);
|
|
|
|
|
|
+ queryWrapper.eq("media_id", 2);
|
|
queryWrapper.orderByDesc("create_time");
|
|
queryWrapper.orderByDesc("create_time");
|
|
List<CtopOauthToken> tokens = tokenService.list(queryWrapper);
|
|
List<CtopOauthToken> tokens = tokenService.list(queryWrapper);
|
|
if (null == tokens || tokens.size() <= 0) {
|
|
if (null == tokens || tokens.size() <= 0) {
|
|
@@ -220,7 +220,7 @@ public class TestController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- /* @GetMapping(value = "/getVideoByAccountId")
|
|
|
|
|
|
+ @GetMapping(value = "/getVideoByAccountId")
|
|
public String getVideoByAccountId(Long accountId) throws IOException {
|
|
public String getVideoByAccountId(Long accountId) throws IOException {
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -233,7 +233,7 @@ public class TestController {
|
|
tokenQueryWrapper.eq("account_id", accountId);
|
|
tokenQueryWrapper.eq("account_id", accountId);
|
|
CtopOauthToken one = tokenService.getOne(tokenQueryWrapper);
|
|
CtopOauthToken one = tokenService.getOne(tokenQueryWrapper);
|
|
try {
|
|
try {
|
|
- kuaishouInterfaceService.getSuZaoList(one.getAccessToken(), one.getAccountId(), 1);
|
|
|
|
|
|
+ kuaishouInterfaceService.getSuZaoList(one.getAccessToken(), one.getAccountId(), 1, null, null);
|
|
String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
String videoEndDate = DateUtils.addDay(nowDate, -180);
|
|
String videoEndDate = DateUtils.addDay(nowDate, -180);
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
@@ -260,7 +260,7 @@ public class TestController {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
return "Success";
|
|
return "Success";
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/createCutTask")
|
|
@GetMapping(value = "/createCutTask")
|