admin: dashboard scanline show bmpa success when run id present
This commit is contained in:
@@ -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) ? '缺' : '有')
|
||||
: '-';
|
||||
|
||||
Reference in New Issue
Block a user