插件地址
use Ip2Region;//ip定位$ip2region = new Ip2Region();//实例化ip定位72.81.24.234$arr=[];$arr['addr1']='无';$arr['addr2']='无';$arr['addr3']='无';$arr['addr4']='无';if($data['ip']){$addr=$ip2region->btreeSearch($data['ip'])['region'];$addr=explode('|',$addr);$arr['addr1']=$addr[0];$arr['addr2']=$addr[2];$arr['addr3']=$addr[3];$arr['addr4']=$addr[4];}return isset($arr) ? $arr : [];