Browse Source

feat:修改分析脚本

zhaohaipeng 1 month ago
parent
commit
150c7f724e
1 changed files with 3 additions and 0 deletions
  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);