tgz 2 년 전
부모
커밋
5be5971972
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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 '';
 }