diff --git a/public/css/admin-components.css b/public/css/admin-components.css index 97f40e2..a15a415 100644 --- a/public/css/admin-components.css +++ b/public/css/admin-components.css @@ -138,6 +138,14 @@ margin-top:16px; } +/* 强制去掉分页区域下划线:避免被全局 a:hover{text-decoration:underline;} 影响 */ +.adm-pagination a, +.adm-pagination a:hover, +.adm-pagination a:focus, +.adm-pagination a:active{ + text-decoration:none !important; +} + .adm-pagination-inner{ display:flex; align-items:center; diff --git a/tests/Feature/AdminPlatformOrderTest.php b/tests/Feature/AdminPlatformOrderTest.php index e6503b8..6ee6f23 100644 --- a/tests/Feature/AdminPlatformOrderTest.php +++ b/tests/Feature/AdminPlatformOrderTest.php @@ -360,9 +360,27 @@ class AdminPlatformOrderTest extends TestCase ->assertDontSee('PO202603100102'); // 只看可同步:已支付 + 已生效 + 未同步 + // 注意:为避免“续费但未绑定订阅”的脏数据被误判为可同步集合,业务逻辑会排除 renewal 且 site_subscription_id 为空的订单。 + // 因此这里必须构造一条已绑定订阅的续费订单。 + $syncableSub = \App\Models\SiteSubscription::query()->create([ + 'merchant_id' => $merchant->id, + 'plan_id' => $plan->id, + 'status' => 'activated', + 'source' => 'manual', + 'subscription_no' => 'SUB_SYNCABLE_0001', + 'plan_name' => $plan->name, + 'billing_cycle' => 'monthly', + 'period_months' => 1, + 'amount' => 199, + 'starts_at' => now()->subDay(), + 'ends_at' => now()->addMonth(), + 'activated_at' => now()->subDay(), + ]); + PlatformOrder::query()->create([ 'merchant_id' => $merchant->id, 'plan_id' => $plan->id, + 'site_subscription_id' => $syncableSub->id, 'order_no' => 'PO202603100106', 'order_type' => 'renewal', 'status' => 'activated',