laowu il y a 1 jour
Parent
commit
cc2d5a91a2
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      app/Http/logic/admin/GlobalLogicController.php

+ 2 - 1
app/Http/logic/admin/GlobalLogicController.php

@@ -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');