|
@@ -133,7 +133,7 @@ public class KuaishouVideoListServiceImpl extends ServiceImpl<KuaishouVideoListM
|
|
|
* @time: 2022/2/9
|
|
* @time: 2022/2/9
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public Map<String,String> getKuaishouVideoByAccountId(Long advertiserId, String accessToken, int page) {
|
|
|
|
|
|
|
+ public Map<String,String> getKuaishouVideoByAccountId(Long advertiserId, String accessToken,List<String> materialIds, int page) {
|
|
|
log.info("调用接口------getKuaishouVideoByAccountId----根据账户获取视频素材---账户--{}===第{}页===》》》",advertiserId,page);
|
|
log.info("调用接口------getKuaishouVideoByAccountId----根据账户获取视频素材---账户--{}===第{}页===》》》",advertiserId,page);
|
|
|
Map<String,String> resultMap = new HashMap<>();
|
|
Map<String,String> resultMap = new HashMap<>();
|
|
|
String url = postUrl + KuaishouConstant.VIDEO_LIST;
|
|
String url = postUrl + KuaishouConstant.VIDEO_LIST;
|
|
@@ -148,6 +148,10 @@ public class KuaishouVideoListServiceImpl extends ServiceImpl<KuaishouVideoListM
|
|
|
param.put("start_date", startDate);
|
|
param.put("start_date", startDate);
|
|
|
param.put("end_date", endDate);
|
|
param.put("end_date", endDate);
|
|
|
}*/
|
|
}*/
|
|
|
|
|
+
|
|
|
|
|
+ if (!Check.isNull(materialIds)){
|
|
|
|
|
+ param.put("photo_ids", materialIds);
|
|
|
|
|
+ }
|
|
|
String result = HttpUtils.httpPostRequest(url, param, headers);
|
|
String result = HttpUtils.httpPostRequest(url, param, headers);
|
|
|
JSONObject resultJson = JSONObject.parseObject(result);
|
|
JSONObject resultJson = JSONObject.parseObject(result);
|
|
|
if (Check.isNull(resultJson)) {
|
|
if (Check.isNull(resultJson)) {
|
|
@@ -216,7 +220,7 @@ public class KuaishouVideoListServiceImpl extends ServiceImpl<KuaishouVideoListM
|
|
|
videoListMapper.replaceBatch(videoGetList);
|
|
videoListMapper.replaceBatch(videoGetList);
|
|
|
}
|
|
}
|
|
|
if (toGet) {
|
|
if (toGet) {
|
|
|
- getKuaishouVideoByAccountId(advertiserId, accessToken, page + 1);
|
|
|
|
|
|
|
+ getKuaishouVideoByAccountId(advertiserId, accessToken, materialIds,page + 1);
|
|
|
} else {
|
|
} else {
|
|
|
log.info("视频列表数据获取完成:accountId:{}", advertiserId);
|
|
log.info("视频列表数据获取完成:accountId:{}", advertiserId);
|
|
|
}
|
|
}
|