소스 검색

feat:修改分析脚本

zhaohaipeng 2 달 전
부모
커밋
150c7f724e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/main/java/examples/extractor/ExtractorUtils.java

+ 3 - 0
src/main/java/examples/extractor/ExtractorUtils.java

@@ -183,6 +183,9 @@ public class ExtractorUtils {
     }
 
     public static long getDaysBetween(long timestamp1, long timestamp2) {
+        if (timestamp1 == 0 || timestamp2 == 0) {
+            return 0;
+        }
         Instant instant1 = Instant.ofEpochSecond(timestamp1);
         Instant instant2 = Instant.ofEpochSecond(timestamp2);