feat: xxbb
This commit is contained in:
@@ -3,10 +3,18 @@
|
||||
@section('title', '原始日志')
|
||||
|
||||
@section('content')
|
||||
@php
|
||||
$labels = ['xxbb' => '新版 C2(public/log/xxbb)', 'c2' => '旧版 C2(public/log/c2)'];
|
||||
@endphp
|
||||
@foreach ($labels as $k => $title)
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">原始日志(public/log/c2)</div>
|
||||
<div class="layui-card-header">{{ $title }}</div>
|
||||
<div class="layui-card-body">
|
||||
<p class="layui-word-aux" style="margin-bottom:12px;">按日文件落盘,不再写入数据库。</p>
|
||||
@if ($k === 'xxbb')
|
||||
<p class="layui-word-aux" style="margin-bottom:12px;">xxbb 短路径上报单独落盘,与旧版 /api/user/* 分开。</p>
|
||||
@else
|
||||
<p class="layui-word-aux" style="margin-bottom:12px;">按日文件落盘,不再写入数据库。</p>
|
||||
@endif
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -17,13 +25,13 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse ($files as $f)
|
||||
@forelse ($groups[$k] ?? [] as $f)
|
||||
<tr>
|
||||
<td><code>{{ $f['name'] }}</code></td>
|
||||
<td>{{ number_format($f['size']) }} B</td>
|
||||
<td>{{ $f['mtime'] }}</td>
|
||||
<td>
|
||||
<a class="layui-btn layui-btn-xs" href="{{ route('admin.logs.show', ['file' => $f['name'], 'path' => $path, 'device' => $device]) }}">查看</a>
|
||||
<a class="layui-btn layui-btn-xs" href="{{ route('admin.logs.show', ['file' => $f['name'], 'kind' => $k, 'path' => $path, 'device' => $device]) }}">查看</a>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
@@ -33,4 +41,5 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user