<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\LBS; use Module\Vendor\Provider\ProviderTrait; class IpProvider { use ProviderTrait; public static function all() { return self::listAll(); } public static function get($BjHij) { return self::getByName($BjHij); } public static function first() { foreach (self::all() as $sefXk) { return $sefXk; } return null; } public static function firstResponse($XF6Vm) { goto zd2Ie; zd2Ie: $sefXk = self::first(); goto Cui36; Cui36: if (!$sefXk) { return null; } goto eNE3O; eNE3O: return $sefXk->getLocation($XF6Vm); goto Zp94p; Zp94p: } public static function firstResponseKey($XF6Vm, $upVgk = array('province')) { goto rMz3u; LX8BT: foreach ($upVgk as $Jo7ME) { $j3paW[] = $SfPcm->{$Jo7ME}; } goto bhd66; bhd66: return join('', $j3paW); goto a_H_R; rMz3u: $SfPcm = self::firstResponse($XF6Vm); goto zxAAd; xEb94: $j3paW = array(); goto LX8BT; zxAAd: if (empty($SfPcm)) { return ''; } goto xEb94; a_H_R: } }