feat(admin): platform orders list show sync error message

This commit is contained in:
萝卜
2026-03-10 13:22:38 +00:00
parent db8730e072
commit 908d1444d5
2 changed files with 11 additions and 1 deletions

View File

@@ -230,6 +230,7 @@
<th>订阅号</th>
<th>订阅到期</th>
<th>同步时间</th>
<th>失败原因</th>
<th>最近批量同步</th>
<th>操作</th>
</tr>
@@ -281,6 +282,14 @@
</td>
<td>{{ optional($order->siteSubscription?->ends_at)->format('Y-m-d H:i:s') ?: '-' }}</td>
<td>{{ data_get($order->meta, 'subscription_activation.synced_at') ?: '-' }}</td>
<td>
@php $syncErrMsg = (string) (data_get($order->meta, 'subscription_activation_error.message') ?? ''); @endphp
@if($syncErrMsg !== '')
<span class="text-danger">{{ mb_substr($syncErrMsg, 0, 60) }}</span>
@else
<span class="muted">-</span>
@endif
</td>
<td>
@php
// 优先使用扁平字段 meta.batch_activation便于筛选/统计,也避免遍历 audit
@@ -346,7 +355,7 @@
</tr>
@empty
<tr>
<td colspan="17" class="muted">暂无平台订单,当前阶段骨架已就位,可继续补套餐下单、支付回执与订阅生效链路。</td>
<td colspan="18" class="muted">暂无平台订单,当前阶段骨架已就位,可继续补套餐下单、支付回执与订阅生效链路。</td>
</tr>
@endforelse
</tbody>

View File

@@ -31,6 +31,7 @@ class AdminPlatformOrderTest extends TestCase
->assertSee('平台订单')
->assertSee('筛选条件')
->assertSee('平台订单列表')
->assertSee('失败原因')
->assertSee('最近批量同步')
->assertSee('最近24小时批量同步过')
->assertSee('可同步订单')