Giter Club home page Giter Club logo

ip-location-zh's People

Contributors

douyux avatar iflamed avatar kwaziidev avatar loverlx avatar wblucky avatar zhichao-poper avatar zhuzhichao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ip-location-zh's Issues

请问如何手动更新数据库?

离线数据库更新日期已经过去半年多了,可否提供方法可随时手动更新数据库?例如,更新脚本。
或者,不方便的话告知dat文件格式和更新逻辑也可以。
谢谢!

bug report

Notice: Undefined index: 本机地址 in vendor\zhuzhichao\ip-location-zh\src\Ip.php on line 225
Warning
: Invalid argument supplied for foreach() in vendor\zhuzhichao\ip-location-zh\src\Ip.php on line 225

 if(isset($locationCode[$province])){
            $code = $locationCode[$province]["code"];
        }
foreach($locationCode[$province]["city"] as $key => $loc){
            if(strpos($key,$city) !== false){
                $code = $loc;
                return $code;
            }
        }

代码这里是不是该这样子写,$locationCode 中没有这个$province的时候会报错

if(isset($locationCode[$province])){
            $code = $locationCode[$province]["code"];
            foreach($locationCode[$province]["city"] as $key => $loc){
                if(strpos($key,$city) !== false){
                    $code = $loc;
                    return $code;
                }
            }
        }

邮政编码不正确

试了 101.226.178.189(上海)、180.97.33.108(南京),都是错的。

有时间我提一个 PR。

laravel 扩展报错

\Zhuzhichao\IpLocationZh\Ip::find('110.223.0.43')

返回一个

[ErrorException]
strpos(): Empty needle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.