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