|
@@ -185,7 +185,8 @@ public class EtlServiceImpl implements EtlService {
|
|
|
log.error("feishu.sheet.token.map config of {} is null", platform);
|
|
|
return;
|
|
|
}
|
|
|
- String sheetId = feishuSheetIdMap.get(platform);
|
|
|
+ String strategyType = Strings.nullToEmpty(param.getStrategyType());
|
|
|
+ String sheetId = feishuSheetIdMap.get(platform + strategyType);
|
|
|
if (Strings.isNullOrEmpty(sheetToken)) {
|
|
|
log.error("feishu.sheet.id.map config of {} is null", platform);
|
|
|
return;
|
|
@@ -198,12 +199,12 @@ public class EtlServiceImpl implements EtlService {
|
|
|
List<Object> value = new ArrayList<>();
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(Constant.STANDARD_FORMAT);
|
|
|
value.add(data.getTitleScore());
|
|
|
- value.add(data.getOutVideoId());
|
|
|
+ value.add(crawlerVideo.getVideoId());
|
|
|
value.add(formatter.format(LocalDateTime.ofInstant(Instant.ofEpochMilli(System.currentTimeMillis()), ZoneId.systemDefault())));
|
|
|
value.add(strategy);
|
|
|
- value.add(crawlerVideo.getVideoId());
|
|
|
+ value.add(data.getOutVideoId());
|
|
|
value.add(data.getVideoTitle());
|
|
|
- value.add(String.format(adminCmsUrl, crawlerVideo.getUserId()));
|
|
|
+ value.add(String.format(adminCmsUrl, crawlerVideo.getVideoId()));
|
|
|
value.add(data.getPlayCnt());
|
|
|
value.add(data.getCommentCnt());
|
|
|
value.add(data.getLikeCnt());
|
|
@@ -212,14 +213,14 @@ public class EtlServiceImpl implements EtlService {
|
|
|
value.add(data.getWidth() + "*" + data.getHeight());
|
|
|
value.add(data.getPublishTime());
|
|
|
value.add(data.getUserName());
|
|
|
- value.add(data.getUserId());
|
|
|
+ value.add(data.getOutUserId());
|
|
|
value.add(data.getAvatarUrl());
|
|
|
value.add(data.getCoverUrl());
|
|
|
value.add(data.getVideoUrl());
|
|
|
values.add(value);
|
|
|
|
|
|
fsResp = FeishuUtils.updateValues(feishuAppid, feishuAppsecret, sheetToken,
|
|
|
- feishuRangeMap.get(platform), values);
|
|
|
+ feishuRangeMap.get(platform + strategyType), values);
|
|
|
log.debug("update feishu sheet value response is {}", fsResp);
|
|
|
|
|
|
slsService.log("message", "视频已保存至云文档", "crawler", platform, "mode", strategy);
|