feat(admin): 仪表盘收费工作台补齐续费缺订阅快捷入口

This commit is contained in:
萝卜
2026-03-15 19:29:26 +08:00
parent 1514700b87
commit b7471026ef
3 changed files with 40 additions and 0 deletions

View File

@@ -51,6 +51,10 @@ class DashboardController extends Controller
'platform_orders_sync_failed' => PlatformOrder::query()
->whereRaw("JSON_EXTRACT(meta, '$.subscription_activation_error.message') IS NOT NULL")
->count(),
'platform_orders_renewal_missing_subscription' => PlatformOrder::query()
->where('order_type', 'renewal')
->whereNull('site_subscription_id')
->count(),
// 站点治理
'active_merchants' => Merchant::query()->where('status', 'active')->count(),