<?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($TTiWe) { return self::getByName($TTiWe); } public static function first() { foreach (self::all() as $yzKqK) { return $yzKqK; } return null; } public static function firstResponse($bPNVt) { goto ktYbY; EuEPL: if (!$yzKqK) { return null; } goto hXnkA; hXnkA: return $yzKqK->getLocation($bPNVt); goto kVdGi; ktYbY: $yzKqK = self::first(); goto EuEPL; kVdGi: } public static function firstResponseKey($bPNVt, $GyZ1b = array('province')) { goto QCqC6; Vnb7O: return join('', $Hu3jW); goto IK0eq; QCqC6: $TDyeE = self::firstResponse($bPNVt); goto kzqYB; kzqYB: if (empty($TDyeE)) { return ''; } goto gQZgq; hDhXU: foreach ($GyZ1b as $FYJFh) { $Hu3jW[] = $TDyeE->{$FYJFh}; } goto Vnb7O; gQZgq: $Hu3jW = array(); goto hDhXU; IK0eq: } }