feat(admin): 平台订单支持按同步失败原因关键词筛选并联动订阅失败原因跳转
This commit is contained in:
@@ -95,6 +95,11 @@ class AdminSiteSubscriptionShowTest extends TestCase
|
||||
'last_amount' => 10,
|
||||
'last_channel' => 'bank_transfer',
|
||||
],
|
||||
'subscription_activation_error' => [
|
||||
'message' => '模拟失败:站点已过期',
|
||||
'at' => now()->toDateTimeString(),
|
||||
'admin_id' => 1,
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
@@ -107,6 +112,7 @@ class AdminSiteSubscriptionShowTest extends TestCase
|
||||
->assertSee('可同步(已支付+已生效+未同步)')
|
||||
->assertSee('未同步(无记录)')
|
||||
->assertSee('失败原因Top3')
|
||||
->assertSee('/admin/platform-orders?site_subscription_id=' . $sub->id . '&sync_status=failed&sync_error_keyword=' . urlencode('模拟失败:站点已过期'), false)
|
||||
->assertSee('/admin/platform-orders?site_subscription_id=' . $sub->id . '&sync_status=synced', false)
|
||||
->assertSee('/admin/platform-orders?site_subscription_id=' . $sub->id . '&sync_status=failed', false)
|
||||
->assertSee('/admin/platform-orders?site_subscription_id=' . $sub->id . '&syncable_only=1', false)
|
||||
|
||||
Reference in New Issue
Block a user