<?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($SeTC_) { return self::getByName($SeTC_); } public static function first() { foreach (self::all() as $tcA2a) { return $tcA2a; } return null; } public static function firstResponse($gflZp) { goto ta_vU; QzE64: if (!$tcA2a) { return null; } goto dMp6d; ta_vU: $tcA2a = self::first(); goto QzE64; dMp6d: return $tcA2a->getLocation($gflZp); goto EWDv1; EWDv1: } public static function firstResponseKey($gflZp, $m8oHI = array('province')) { goto EoWob; zznzy: if (empty($hpPV_)) { return ''; } goto CDoUp; imEzo: return join('', $sqdZL); goto EPHGm; CDoUp: $sqdZL = array(); goto bOH6X; bOH6X: foreach ($m8oHI as $ySsOv) { $sqdZL[] = $hpPV_->{$ySsOv}; } goto imEzo; EoWob: $hpPV_ = self::firstResponse($gflZp); goto zznzy; EPHGm: } }