<?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($aVT3z) { return self::getByName($aVT3z); } public static function first() { foreach (self::all() as $kHDkQ) { return $kHDkQ; } return null; } public static function firstResponse($aZl1j) { goto B0L0A; n5F4q: if (!$kHDkQ) { return null; } goto OgEld; B0L0A: $kHDkQ = self::first(); goto n5F4q; OgEld: return $kHDkQ->getLocation($aZl1j); goto iyhiO; iyhiO: } public static function firstResponseKey($aZl1j, $YReV2 = array('province')) { goto wkP3w; DC_Ca: $e3gsP = array(); goto xRHvU; BLfnh: if (empty($QCe8o)) { return ''; } goto DC_Ca; xRHvU: foreach ($YReV2 as $OSU2M) { $e3gsP[] = $QCe8o->{$OSU2M}; } goto ilFBq; ilFBq: return join('', $e3gsP); goto fvtNk; wkP3w: $QCe8o = self::firstResponse($aZl1j); goto BLfnh; fvtNk: } }