Skip to content

Commit 878b66a

Browse files
committed
update
1 parent 8b9e938 commit 878b66a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"autoload": {
1919
"psr-4": {
20-
"ipip": "src/ipip/"
20+
"ipip/db": "src/ipip/db/"
2121
}
2222
}
2323
}

example.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
require_once __DIR__ . '/src/ipip/Info.php';
4-
require_once __DIR__ . '/src/ipip/Database.php';
3+
require_once __DIR__ . '/src/ipip/db/Info.php';
4+
require_once __DIR__ . '/src/ipip/db/Reader.php';
55

6-
$db = new ipip\Database('c:/work/tiantexin/framework/library/ip/mydata6.ipdb');
6+
$db = new ipip\db\Reader('c:\work\tiantexin\bb\v6\mydatavipday2.ipdb');
77
$loc = $db->find("2001:250:200::");
88
$map = $db->findMap("2001:250:200::");
99
$obj = $db->findInfo("2001:250:200::");

0 commit comments

Comments
 (0)