pull/69/head
FongMi 3 years ago
parent 7ec4a6bed6
commit c800627003
  1. 3
      app/src/main/java/com/github/catvod/spider/Market.java
  2. BIN
      jar/custom_spider.jar
  3. 2
      jar/custom_spider.jar.md5

@ -18,6 +18,7 @@ import java.io.FileOutputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import okhttp3.Response;
@ -78,7 +79,7 @@ public class Market extends Spider {
totalBytes += readBytes;
os.write(buffer, 0, readBytes);
int progress = (int) (totalBytes / length * 100.0);
if (progress % 10 < 5) Utils.notify("正在下載..." + progress + "%");
if (progress % 10 <= new Random().nextInt(6)) Utils.notify("正在下載..." + progress + "%");
}
}
}

Binary file not shown.

@ -1 +1 @@
e387f38428b7c337475b2827c56949f5
6d1c97eeff8c95ad0f456d066efde69b

Loading…
Cancel
Save