platform_orders index: compact view shows sync/bmpa error reason under sync status

This commit is contained in:
萝卜
2026-03-14 12:32:10 +00:00
parent 3fad02087e
commit c9b57a9289
2 changed files with 92 additions and 0 deletions

View File

@@ -1069,6 +1069,7 @@
@php
$syncedId = (int) data_get($order->meta, 'subscription_activation.subscription_id', 0);
$syncErr = (string) (data_get($order->meta, 'subscription_activation_error.message') ?? '');
$bmpaErrCompact = (string) (data_get($order->meta, 'batch_mark_paid_and_activate_error.message') ?? '');
@endphp
@if($syncedId > 0)
<a href="{!! $safeFullUrlWithQuery(['sync_status' => 'synced', 'page' => null]) !!}" class="link">已同步</a>
@@ -1077,6 +1078,15 @@
@else
<a href="{!! $safeFullUrlWithQuery(['sync_status' => 'unsynced', 'page' => null]) !!}" class="muted">未同步</a>
@endif
@if(! $isFullView)
@if($syncErr !== '')
<div class="muted muted-xs text-danger">原因:{{ mb_substr($syncErr, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }}</div>
@endif
@if($bmpaErrCompact !== '')
<div class="muted muted-xs text-danger">BMPA{{ mb_substr($bmpaErrCompact, 0, $SYNC_FAILED_REASON_TRUNCATE_LEN) }}</div>
@endif
@endif
</td>
<td>
@if($order->siteSubscription)