wuggemail@foxmail.com 3 months ago
parent
commit
667e42434e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/middleware/HttpLog.php

+ 3 - 2
app/middleware/HttpLog.php

@@ -3,7 +3,8 @@ declare (strict_types = 1);
 
 namespace app\middleware;
 
-use app\user\model\SystemLog;use think\facade\Cache;use think\facade\Route;
+use app\user\model\SystemLog;
+use think\facade\Cache;
 class HttpLog
 {
     private $logid;
@@ -28,7 +29,7 @@ class HttpLog
                 'action' =>strtolower($request->action()),
                 'param' =>json_encode($request->param(),JSON_UNESCAPED_UNICODE),
                 'response' =>"[]",
-                 'client_ip'=>$request->ip(),
+                'client_ip'=>$request->ip(),
                 'action_id' => $userinfo['id']??0,
                 'action_name' => $userinfo['nickname']??'system'
                 ];