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>
|
||||||
|
<th>失败原因</th>
|
||||||
<th>最近批量同步</th>
|
<th>最近批量同步</th>
|
||||||
<th>操作</th>
|
<th>操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -281,6 +282,14 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>{{ optional($order->siteSubscription?->ends_at)->format('Y-m-d H:i:s') ?: '-' }}</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>{{ 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>
|
<td>
|
||||||
@php
|
@php
|
||||||
// 优先使用扁平字段 meta.batch_activation(便于筛选/统计,也避免遍历 audit)
|
// 优先使用扁平字段 meta.batch_activation(便于筛选/统计,也避免遍历 audit)
|
||||||
@@ -346,7 +355,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="17" class="muted">暂无平台订单,当前阶段骨架已就位,可继续补套餐下单、支付回执与订阅生效链路。</td>
|
<td colspan="18" class="muted">暂无平台订单,当前阶段骨架已就位,可继续补套餐下单、支付回执与订阅生效链路。</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforelse
|
@endforelse
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class AdminPlatformOrderTest extends TestCase
|
|||||||
->assertSee('平台订单')
|
->assertSee('平台订单')
|
||||||
->assertSee('筛选条件')
|
->assertSee('筛选条件')
|
||||||
->assertSee('平台订单列表')
|
->assertSee('平台订单列表')
|
||||||
|
->assertSee('失败原因')
|
||||||
->assertSee('最近批量同步')
|
->assertSee('最近批量同步')
|
||||||
->assertSee('最近24小时批量同步过')
|
->assertSee('最近24小时批量同步过')
|
||||||
->assertSee('可同步订单')
|
->assertSee('可同步订单')
|
||||||
|
|||||||
Reference in New Issue
Block a user