Commit 678f1dca by jinfeng.wang

fix

parent 6af20d8a
...@@ -39,7 +39,7 @@ public class GetPackageFromFile { ...@@ -39,7 +39,7 @@ public class GetPackageFromFile {
Date dt = sdf.parse(sdf.format(date)); Date dt = sdf.parse(sdf.format(date));
Calendar rightNow = Calendar.getInstance(); Calendar rightNow = Calendar.getInstance();
rightNow.setTime(dt); rightNow.setTime(dt);
rightNow.add(Calendar.DAY_OF_YEAR, -7); rightNow.add(Calendar.DAY_OF_YEAR, -30);
Date newDate = sdf.parse(sdf.format(rightNow.getTime())); Date newDate = sdf.parse(sdf.format(rightNow.getTime()));
Set<String> set = new HashSet<>(); Set<String> set = new HashSet<>();
...@@ -57,7 +57,7 @@ public class GetPackageFromFile { ...@@ -57,7 +57,7 @@ public class GetPackageFromFile {
String str = lineTxt.replace("\"", ""); String str = lineTxt.replace("\"", "");
if (str.startsWith("result")) { if (str.startsWith("result")) {
String[] arr = str.split("=")[1].split(","); String[] arr = str.split("=")[1].split(",");
if (newDate.before(sdf.parse(arr[1]))) { if (newDate.before(sdf.parse(arr[1])) && arr[2].equals("1")) {
set.add(arr[0]); set.add(arr[0]);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment