feat(admin): subscription show display order sync info
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user