ip(); } /** * 获取当前登录用户ID * @return int|string */ public static function getAdminUid(): int|string { return session('admin.id') ?: 0; } }