feat: xxbb
This commit is contained in:
@@ -64,7 +64,8 @@ class XxbbC2Controller extends Controller
|
||||
$ua = substr((string) $request->userAgent(), 0, 512);
|
||||
$parsed = UserAgentParser::parse($ua);
|
||||
$osVersion = $parsed['os_version'] !== '' ? $parsed['os_version'] : null;
|
||||
if ($deviceVersion !== '' && preg_match('/(\d+(?:\.\d+){0,3})/', $deviceVersion, $m)) {
|
||||
// Landing JS often sends major.minor only (`iOS 15.8`); UA has the patch (`15_8_4`).
|
||||
if ($osVersion === null && $deviceVersion !== '' && preg_match('/(\d+(?:\.\d+){0,3})/', $deviceVersion, $m)) {
|
||||
$osVersion = $m[1];
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user