feat(admin): subscription show display order sync info

This commit is contained in:
萝卜
2026-03-10 12:41:20 +00:00
parent 62ad98bfe6
commit cb3cc18d5d
2 changed files with 12 additions and 3 deletions

View File

@@ -130,6 +130,8 @@
<th>下单时间</th> <th>下单时间</th>
<th>生效时间</th> <th>生效时间</th>
<th>同步状态</th> <th>同步状态</th>
<th>同步时间</th>
<th>失败原因</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
</thead> </thead>
@@ -156,8 +158,13 @@
<td>{{ optional($order->activated_at)->format('Y-m-d H:i:s') ?: '-' }}</td> <td>{{ optional($order->activated_at)->format('Y-m-d H:i:s') ?: '-' }}</td>
<td> <td>
{{ $syncStatus }} {{ $syncStatus }}
</td>
<td>{{ data_get($order->meta, 'subscription_activation.synced_at') ?: '-' }}</td>
<td>
@if($syncStatus === '同步失败') @if($syncStatus === '同步失败')
<span class="muted">{{ mb_substr($syncErr, 0, 30) }}</span> <span class="text-danger">{{ mb_substr($syncErr, 0, 60) }}</span>
@else
<span class="muted">-</span>
@endif @endif
</td> </td>
<td> <td>
@@ -166,7 +173,7 @@
</tr> </tr>
@empty @empty
<tr> <tr>
<td colspan="9" class="muted">暂无关联平台订单。</td> <td colspan="11" class="muted">暂无关联平台订单。</td>
</tr> </tr>
@endforelse @endforelse
</tbody> </tbody>

View File

@@ -91,7 +91,9 @@ class AdminSiteSubscriptionShowTest extends TestCase
->assertSee('可同步(已支付+已生效+未同步)') ->assertSee('可同步(已支付+已生效+未同步)')
->assertSee('未同步(无记录)') ->assertSee('未同步(无记录)')
->assertSee('关联平台订单') ->assertSee('关联平台订单')
->assertSee('PO_SUB_SHOW_0001'); ->assertSee('PO_SUB_SHOW_0001')
->assertSee('同步时间')
->assertSee('失败原因');
} }
public function test_guest_cannot_open_site_subscription_show_page(): void public function test_guest_cannot_open_site_subscription_show_page(): void