mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
refactor isSeedBox judgement
This commit is contained in:
@@ -915,6 +915,15 @@ function isIPSeedBoxFromASN($ip, $exceptionWhenYes = false): bool
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @param $ip
|
||||
* @param $uid
|
||||
* @param $withoutCache
|
||||
* @param $exceptionWhenYes
|
||||
* @return bool
|
||||
* @throws \App\Exceptions\SeedBoxYesException
|
||||
*/
|
||||
function isIPSeedBox($ip, $uid, $withoutCache = false, $exceptionWhenYes = false): bool
|
||||
{
|
||||
$key = "nexus_is_ip_seed_box:ip:$ip:uid:$uid";
|
||||
|
||||
Reference in New Issue
Block a user