fix(admin): 仪表盘待生效计数排除同步失败(口径更清晰)

This commit is contained in:
萝卜
2026-03-15 19:46:56 +08:00
parent 7a41ac04d8
commit 0a5b86ac55
2 changed files with 4 additions and 2 deletions

View File

@@ -55,6 +55,8 @@ class DashboardController extends Controller
'platform_orders_paid_pending' => PlatformOrder::query()
->where('payment_status', 'paid')
->where('status', 'pending')
// 口径对齐“待生效”语义:排除明确的同步失败(失败单应该去同步失败治理)
->whereRaw("JSON_EXTRACT(meta, '$.subscription_activation_error.message') IS NULL")
->count(),
// 同步失败沿用平台订单列表口径meta.subscription_activation_error.message 存在即失败)
'platform_orders_sync_failed' => PlatformOrder::query()