mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 02:47:27 +08:00
add uploadspeed + downloadspeed +isp
This commit is contained in:
@@ -39,10 +39,13 @@ class BaseRepository
|
||||
/**
|
||||
* @param $user
|
||||
* @param null $fields
|
||||
* @return User
|
||||
* @return User|null
|
||||
*/
|
||||
protected function getUser($user, $fields = null): User
|
||||
protected function getUser($user, $fields = null): User|null
|
||||
{
|
||||
if ($user === null) {
|
||||
return null;
|
||||
}
|
||||
if ($user instanceof User) {
|
||||
return $user;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user