feat: xxbb

This commit is contained in:
hashbro
2026-08-14 16:09:41 +08:00
parent 8a110af66d
commit 01d1ef76a8
5 changed files with 58 additions and 13 deletions
@@ -37,9 +37,9 @@ class RawLogController extends Controller
return view('admin.logs.index', compact('groups', 'kind', 'path', 'device'));
}
public function show(Request $request, string $file)
public function show(Request $request, string $kind, string $file)
{
$kind = $this->kind($request);
$kind = in_array($kind, self::KINDS, true) ? $kind : 'c2';
$safe = basename($file);
if (! preg_match('/^\d{8}\.log$/', $safe)) {
abort(404);