소스 검색

feat:修改hour的处理

zhaohaipeng 3 달 전
부모
커밋
8705f0b590
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/examples/extractor/v20250218/ExtractFeature20250218.java

+ 1 - 1
src/main/java/examples/extractor/v20250218/ExtractFeature20250218.java

@@ -98,7 +98,7 @@ public class ExtractFeature20250218 {
 
         LocalDateTime now = LocalDateTime.ofInstant(Instant.ofEpochSecond(ts), ZoneId.systemDefault());
         featureMap.put("hour", now.getHour() + 1);
-        featureMap.put("day_of_week", now.getDayOfWeek());
+        featureMap.put("day_of_week", now.getDayOfWeek().getValue());
 
         long createTs = Long.parseLong(videoFeature.getOrDefault("gmt_create_timestamp", "0").toString());
         featureMap.put("create_ts_diff", ExtractorUtils.getDaysBetween(createTs, ts));