<?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($L1N0l) { return self::getByName($L1N0l); } public static function first() { foreach (self::all() as $oMd7I) { return $oMd7I; } return null; } public static function firstResponse($AZhwp) { goto AY2Y6; IIrl0: if (!$oMd7I) { return null; } goto Iy5Hn; AY2Y6: $oMd7I = self::first(); goto IIrl0; Iy5Hn: return $oMd7I->getLocation($AZhwp); goto I8o12; I8o12: } public static function firstResponseKey($AZhwp, $XAc8y = array('province')) { goto eR6Y4; AbUjG: return join('', $nV1c1); goto dMagv; eR6Y4: $kx5x7 = self::firstResponse($AZhwp); goto JGoQM; eT3db: $nV1c1 = array(); goto YNNTh; JGoQM: if (empty($kx5x7)) { return ''; } goto eT3db; YNNTh: foreach ($XAc8y as $UtKOH) { $nV1c1[] = $kx5x7->{$UtKOH}; } goto AbUjG; dMagv: } }