feat(admin): platform orders list show sync error message
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user