<?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($MGY9H) { return self::getByName($MGY9H); } public static function first() { foreach (self::all() as $O9Vtg) { return $O9Vtg; } return null; } public static function firstResponse($lD1Bs) { goto Bk0n9; Bk0n9: $O9Vtg = self::first(); goto m7u6u; eGGRi: return $O9Vtg->getLocation($lD1Bs); goto wXHf3; m7u6u: if (!$O9Vtg) { return null; } goto eGGRi; wXHf3: } public static function firstResponseKey($lD1Bs, $zDRuJ = array('province')) { goto lBBcK; GBQ83: $s2vPN = array(); goto VLY81; VLY81: foreach ($zDRuJ as $rY0hM) { $s2vPN[] = $kE0Px->{$rY0hM}; } goto ki2VD; lBBcK: $kE0Px = self::firstResponse($lD1Bs); goto gaXlE; gaXlE: if (empty($kE0Px)) { return ''; } goto GBQ83; ki2VD: return join('', $s2vPN); goto fO9a2; fO9a2: } }