tgz 2 years ago
parent
commit
5be5971972
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/functions.php

+ 5 - 1
app/functions.php

@@ -89,7 +89,11 @@ function get_client_ua()
 {
     $request = request();
     $header = $request->header();
-    return $header['user-agent'];
+    if(isset($header['user-agent'])){
+        return $header['user-agent'];
+    }
+    Logger::app('noagent:'.json_encode($header));
+    return '';
 }