admin: dashboard scanline show bmpa success when run id present

This commit is contained in:
萝卜
2026-03-18 05:21:13 +08:00
parent 41312b1e78
commit cd9634113e
2 changed files with 85 additions and 1 deletions

View File

@@ -884,7 +884,15 @@
: '-';
$syncStatusText = $syncErrMsg !== '' ? '失败' : '正常';
$bmpaStatusText = $bmpaErrMsg !== '' ? '失败' : '正常';
// BMPA 摘要口径(更贴近治理/复核):
// - 有 error.message失败
// - 无 error 且有 run_id成功可用于抽样复核 spot-check
// - 否则:无(尚未发生 BMPA
$bmpaRunId = (string) (data_get($po->meta, 'batch_mark_paid_and_activate.run_id') ?? '');
$bmpaStatusText = $bmpaErrMsg !== ''
? '失败'
: ($bmpaRunId !== '' ? '成功' : '无');
$subscriptionStatusText = ((string) $po->order_type === 'renewal')
? (empty($po->site_subscription_id) ? '缺' : '有')
: '-';