识别oriontv
This commit is contained in:
@@ -45,6 +45,11 @@ function getDeviceInfo(userAgent: string): string {
|
||||
return 'MoonTVPlus APP';
|
||||
}
|
||||
|
||||
// 检查是否为 OrionTV
|
||||
if (ua.includes('oriontv')) {
|
||||
return 'OrionTV';
|
||||
}
|
||||
|
||||
if (ua.includes('mobile') || ua.includes('android') || ua.includes('iphone')) {
|
||||
if (ua.includes('android')) return 'Android Mobile';
|
||||
if (ua.includes('iphone')) return 'iPhone';
|
||||
|
||||
@@ -45,6 +45,11 @@ function getDeviceInfo(userAgent: string): string {
|
||||
return 'MoonTVPlus APP';
|
||||
}
|
||||
|
||||
// 检查是否为 OrionTV
|
||||
if (ua.includes('oriontv')) {
|
||||
return 'OrionTV';
|
||||
}
|
||||
|
||||
if (ua.includes('mobile') || ua.includes('android') || ua.includes('iphone')) {
|
||||
if (ua.includes('android')) return 'Android Mobile';
|
||||
if (ua.includes('iphone')) return 'iPhone';
|
||||
|
||||
@@ -152,6 +152,11 @@ function getDeviceInfo(request: NextRequest): string {
|
||||
return 'MoonTVPlus APP';
|
||||
}
|
||||
|
||||
// 检查是否为 OrionTV
|
||||
if (userAgent.toLowerCase().includes('oriontv')) {
|
||||
return 'OrionTV';
|
||||
}
|
||||
|
||||
// 简单解析 User-Agent
|
||||
let browser = 'Unknown Browser';
|
||||
let os = 'Unknown OS';
|
||||
|
||||
Reference in New Issue
Block a user