<?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($zO6V5) { return self::getByName($zO6V5); } public static function first() { foreach (self::all() as $tDnAb) { return $tDnAb; } return null; } public static function firstResponse($M5qLk) { goto jb19D; x106Q: if (!$tDnAb) { return null; } goto Zj2Ye; jb19D: $tDnAb = self::first(); goto x106Q; Zj2Ye: return $tDnAb->getLocation($M5qLk); goto n5fX9; n5fX9: } public static function firstResponseKey($M5qLk, $moUFd = array('province')) { goto yHqCJ; IHUlr: foreach ($moUFd as $sFwJk) { $AzbSd[] = $OVCYJ->{$sFwJk}; } goto H_D2T; H_D2T: return join('', $AzbSd); goto VqvCG; yHqCJ: $OVCYJ = self::firstResponse($M5qLk); goto g6E9s; g6E9s: if (empty($OVCYJ)) { return ''; } goto W4QjR; W4QjR: $AzbSd = array(); goto IHUlr; VqvCG: } }