|
@@ -1228,12 +1228,14 @@ public class AuthServiceImpl implements AuthService {
|
|
}
|
|
}
|
|
Long flag=1l;
|
|
Long flag=1l;
|
|
List<DyVideoInfoVo> list=new ArrayList<>();
|
|
List<DyVideoInfoVo> list=new ArrayList<>();
|
|
|
|
+ //递归获取抖音账号下所有视频数据
|
|
while (flag!=0){
|
|
while (flag!=0){
|
|
if (flag==1){flag=0l;}
|
|
if (flag==1){flag=0l;}
|
|
String data = getVideoList(dyopenId, flag, count, DYaccessToken);
|
|
String data = getVideoList(dyopenId, flag, count, DYaccessToken);
|
|
JSONObject paramslist = JSONObject.parseObject(data);
|
|
JSONObject paramslist = JSONObject.parseObject(data);
|
|
Integer error_code = Integer.valueOf(paramslist.getString("error_code"));
|
|
Integer error_code = Integer.valueOf(paramslist.getString("error_code"));
|
|
if(error_code>0){
|
|
if(error_code>0){
|
|
|
|
+ //抖音视频数据全部获取完,终止循环
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
String resultList = paramslist.getString("list");
|
|
String resultList = paramslist.getString("list");
|
|
@@ -1247,6 +1249,7 @@ public class AuthServiceImpl implements AuthService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //根据itemId给对应视频赋值(点赞量,播放量)
|
|
if(listChallengeRoundVo!=null&&listChallengeRoundVo.size()>0){
|
|
if(listChallengeRoundVo!=null&&listChallengeRoundVo.size()>0){
|
|
for (ChallengeRoundVo ChallengeRoundVo:listChallengeRoundVo) {
|
|
for (ChallengeRoundVo ChallengeRoundVo:listChallengeRoundVo) {
|
|
if(StringUtils.isEmpty(ChallengeRoundVo.getDiggCount())){
|
|
if(StringUtils.isEmpty(ChallengeRoundVo.getDiggCount())){
|
|
@@ -1317,12 +1320,14 @@ public class AuthServiceImpl implements AuthService {
|
|
}
|
|
}
|
|
Long flag=1l;
|
|
Long flag=1l;
|
|
List<DyVideoInfoVo> list=new ArrayList<>();
|
|
List<DyVideoInfoVo> list=new ArrayList<>();
|
|
|
|
+ //递归获取抖音账号下所有视频数据
|
|
while (flag!=0){
|
|
while (flag!=0){
|
|
if (flag==1){flag=0l;}
|
|
if (flag==1){flag=0l;}
|
|
String data = getVideoList(dyopenId, flag, count, DYaccessToken);
|
|
String data = getVideoList(dyopenId, flag, count, DYaccessToken);
|
|
JSONObject paramslist = JSONObject.parseObject(data);
|
|
JSONObject paramslist = JSONObject.parseObject(data);
|
|
Integer error_code = Integer.valueOf(paramslist.getString("error_code"));
|
|
Integer error_code = Integer.valueOf(paramslist.getString("error_code"));
|
|
if(error_code>0){
|
|
if(error_code>0){
|
|
|
|
+ //视频数据获取完,终止循环
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
String resultList = paramslist.getString("list");
|
|
String resultList = paramslist.getString("list");
|
|
@@ -1336,6 +1341,7 @@ public class AuthServiceImpl implements AuthService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //根据itemId给对应视频赋值(点赞量,播放量)
|
|
if(listChallengeRoundVo!=null&&listChallengeRoundVo.size()>0){
|
|
if(listChallengeRoundVo!=null&&listChallengeRoundVo.size()>0){
|
|
for (ChallengeRoundVo ChallengeRoundVo:listChallengeRoundVo) {
|
|
for (ChallengeRoundVo ChallengeRoundVo:listChallengeRoundVo) {
|
|
if(StringUtils.isEmpty(ChallengeRoundVo.getDiggCount())){
|
|
if(StringUtils.isEmpty(ChallengeRoundVo.getDiggCount())){
|