platform_orders: add clear single sync_error action from show page

This commit is contained in:
萝卜
2026-03-14 13:58:36 +00:00
parent fa9090f4d8
commit f91be76e08
5 changed files with 189 additions and 1 deletions

View File

@@ -565,7 +565,15 @@
</div>
<div class="card mb-20">
<h3>最近一次同步失败</h3>
<div class="flex-between">
<h3>最近一次同步失败</h3>
@if($activationError)
<form method="post" action="/admin/platform-orders/{{ $order->id }}/clear-sync-error" onsubmit="return confirm('确认清除该订单的同步失败标记?该操作仅清理 meta 标记,不会改变订阅/订单状态。');">
@csrf
<button class="btn btn-danger btn-sm" type="submit">清除失败标记</button>
</form>
@endif
</div>
@if($activationError)
<table>
<tbody>
@@ -574,6 +582,7 @@
<tr><th>操作管理员</th><td>{{ data_get($activationError, 'admin_id') ?: '-' }}</td></tr>
</tbody>
</table>
<div class="muted muted-xs mt-6">提示:当你已确认问题已解决,但历史失败标记仍残留时,可先清理标记,再点击上方「重试同步订阅」。</div>
@else
<p class="muted">暂无失败记录。</p>
@endif