Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
ALI1416 committed Mar 31, 2023
1 parent 39005ba commit bdda891
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@

## 参考

- [ip2region](https://github.com/lionsoul2014/ip2region)
- [phonedata](https://github.com/xluohome/phonedata)
- [phone-number-geo](https://github.com/EeeMt/phone-number-geo)
- [lionsoul2014/ip2region](https://github.com/lionsoul2014/ip2region)
- [xluohome/phonedata](https://github.com/xluohome/phonedata)
- [EeeMt/phone-number-geo](https://github.com/EeeMt/phone-number-geo)
5 changes: 2 additions & 3 deletions src/test/java/cn/z/ip2region/DataGenerationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;

import java.io.*;
Expand Down Expand Up @@ -31,7 +30,7 @@ class DataGenerationTest {

final String txtPath = "E:/ip.merge.txt";
final String dbPath = "E:/ip2region.db";
final String zipPath = "E:/ip2region.zdb";
final String zdbPath = "E:/ip2region.zdb";
final int version = 20221207;

/**
Expand Down Expand Up @@ -373,7 +372,7 @@ public String toString() {
// @Test
void test02Compress() throws Exception {
log.info("---------- 压缩 ---------- 开始");
ZipOutputStream zipOutputStream = new ZipOutputStream(new FileOutputStream(zipPath));
ZipOutputStream zipOutputStream = new ZipOutputStream(new FileOutputStream(zdbPath));
zipOutputStream.putNextEntry(new ZipEntry(new File(dbPath).getName()));
FileInputStream fileInputStream = new FileInputStream(dbPath);
byte[] buffer = new byte[4096];
Expand Down

0 comments on commit bdda891

Please sign in to comment.