fix(subscription): syncable stats exclude sync failed orders

This commit is contained in:
萝卜
2026-03-16 20:47:10 +08:00
parent abb0f2a38f
commit 45c1dbf2b9

View File

@@ -42,6 +42,8 @@ class SiteSubscriptionController extends Controller
->where('payment_status', 'paid') ->where('payment_status', 'paid')
->where('status', 'activated') ->where('status', 'activated')
->whereRaw("JSON_EXTRACT(meta, '$.subscription_activation.subscription_id') IS NULL") ->whereRaw("JSON_EXTRACT(meta, '$.subscription_activation.subscription_id') IS NULL")
// 口径对齐平台订单页:可同步 = 未同步且非失败
->whereRaw("JSON_EXTRACT(meta, '$.subscription_activation_error.message') IS NULL")
->count(), ->count(),
]; ];