This commit is contained in:
hashbro
2026-09-19 01:03:23 +08:00
parent 2729fd561b
commit 5be0313ccd
17 changed files with 180 additions and 34 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
namespace App\Models;
use App\Support\VisitorIp;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
@@ -54,7 +55,7 @@ class SystemLog extends Model
'actor_id' => $actor->id,
'actor_username' => (string) $actor->username,
'content' => $content,
'ip' => $request?->ip(),
'ip' => $request ? VisitorIp::fromRequest($request) : null,
]);
}