update: new feature

This commit is contained in:
tokumeikoi
2021-07-31 02:05:39 +09:00
parent 1adb1bcfa0
commit ebf98d42a8
5 changed files with 14 additions and 9 deletions

View File

@ -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;
}
}