|
|
@@ -702,7 +702,18 @@ class GlobalLogicController extends BaseLogicController
|
|
|
$platformData[$pitem]['total'] = (Redis::get($key)?:0)/100;
|
|
|
$platformData[$pitem]['today'] = (Redis::get($dkey)?:0)/100;
|
|
|
}
|
|
|
-
|
|
|
+ // 手机型号
|
|
|
+ $data['mobileBand'] = '';
|
|
|
+ $res = Redis::get('user_ua_' . ($user->UserID ?? ''));
|
|
|
+ if ($res) {
|
|
|
+ $ua = $res['ua'] ?? '';
|
|
|
+ if (stripos($ua, 'iPhone') !== false) {
|
|
|
+ $data['mobileBand'] = 'iPhone';
|
|
|
+ }
|
|
|
+ if (preg_match('/Android\s[\d\.]+;\s([^)]+)/i', $ua, $match)) {
|
|
|
+ $data['mobileBand'] = 'Android' . trim($match[1]);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
return compact('data', 'userInfo', 'registerInviteSwitches', 'gameCount', 'userSource', 'OpenPage','platformData');
|
|
|
}
|