|
|
@@ -706,13 +706,14 @@ class GlobalLogicController extends BaseLogicController
|
|
|
$data['mobileBand'] = '';
|
|
|
$res = Redis::get('user_ua_' . ($user->UserID ?? ''));
|
|
|
if ($res) {
|
|
|
- $ua = $res['ua'] ?? '';
|
|
|
+ $ua = $res ?? '';
|
|
|
if (stripos($ua, 'iPhone') !== false) {
|
|
|
$data['mobileBand'] = 'iPhone';
|
|
|
}
|
|
|
if (preg_match('/Android\s[\d\.]+;\s([^)]+)/i', $ua, $match)) {
|
|
|
$data['mobileBand'] = 'Android' . trim($match[1]);
|
|
|
}
|
|
|
+ $data['mobileBand'] .= "(".mb_substr(trim($ua), 0, 25).")";
|
|
|
}
|
|
|
|
|
|
return compact('data', 'userInfo', 'registerInviteSwitches', 'gameCount', 'userSource', 'OpenPage','platformData');
|