<?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($fYoEH) { return self::getByName($fYoEH); } public static function first() { foreach (self::all() as $pXrNS) { return $pXrNS; } return null; } public static function firstResponse($ObEi3) { goto LYJOp; LYJOp: $pXrNS = self::first(); goto tlRqo; IH_9l: return $pXrNS->getLocation($ObEi3); goto hf2tl; tlRqo: if (!$pXrNS) { return null; } goto IH_9l; hf2tl: } public static function firstResponseKey($ObEi3, $FZdGP = array('province')) { goto olTkA; u4LEU: $seqlj = array(); goto ffMj7; olTkA: $E09Q0 = self::firstResponse($ObEi3); goto xtyQ9; ffMj7: foreach ($FZdGP as $PeAfP) { $seqlj[] = $E09Q0->{$PeAfP}; } goto x8t6x; xtyQ9: if (empty($E09Q0)) { return ''; } goto u4LEU; x8t6x: return join('', $seqlj); goto lp788; lp788: } }