平台订单:同步失败原因TOP5链接增强(截断展示+URL编码测试)

This commit is contained in:
萝卜
2026-03-11 09:33:34 +00:00
parent 788ee944d8
commit d0b7f9ad61
2 changed files with 96 additions and 5 deletions

View File

@@ -239,12 +239,21 @@
@if(count($failedReasonStats) > 0)
<div class="muted mt-6">
@foreach($failedReasonStats as $item)
@php $reason = (string) ($item['reason'] ?? ''); @endphp
@php
$reason = (string) ($item['reason'] ?? '');
$count = (int) ($item['count'] ?? 0);
@endphp
<div>
<a class="link" href="{!! request()->fullUrlWithQuery(['sync_error_keyword' => $reason, 'sync_status' => 'failed', 'page' => null]) !!}">{{ $reason }}</a>
<span class="muted">{{ $item['count'] }}</span>
<span class="muted"></span>
<a class="link" href="{!! request()->fullUrlWithQuery(['sync_error_keyword' => $reason, 'sync_status' => null, 'syncable_only' => '1', 'page' => null]) !!}">切到可同步重试</a>
@if($reason !== '')
@php $reasonText = mb_substr($reason, 0, 60); @endphp
<a class="link" title="{{ $reason }}" href="{!! request()->fullUrlWithQuery(['sync_error_keyword' => $reason, 'sync_status' => 'failed', 'page' => null]) !!}">{{ $reasonText }}</a>
<span class="muted">{{ $count }}</span>
<span class="muted"></span>
<a class="link" href="{!! request()->fullUrlWithQuery(['sync_error_keyword' => $reason, 'sync_status' => null, 'syncable_only' => '1', 'page' => null]) !!}">切到可同步重试</a>
@else
<span class="muted">(空原因)</span>
<span class="muted">{{ $count }}</span>
@endif
</div>
@endforeach
</div>