mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 12:37:54 +08:00
update: new feature
This commit is contained in:
@ -95,4 +95,14 @@ class Helper
|
||||
return round($byte, 2) . ' B';
|
||||
}
|
||||
}
|
||||
|
||||
public static function getSubscribeHost()
|
||||
{
|
||||
$subscribeUrl = config('v2board.app_url');
|
||||
$subscribeUrls = explode(',', config('v2board.subscribe_url'));
|
||||
if ($subscribeUrls && $subscribeUrls[0]) {
|
||||
$subscribeUrl = $subscribeUrls[rand(0, count($subscribeUrls) - 1)];
|
||||
}
|
||||
return $subscribeUrl;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user