@extends('admin.layouts.app') @section('title', '批次详情') @section('page_title', '批次详情') @section('content') @php $typeText = $type === 'bas' ? 'BAS(批量同步订阅)' : ($type === 'bmpa' ? 'BMPA(批量标记支付并生效)' : '未知'); $selfWithoutBack = \App\Support\BackUrl::selfWithoutBack(); $backToListUrl = $safeBackForLinks !== '' ? $safeBackForLinks : '/admin/platform-orders'; $success = (int) (data_get($summary, 'success') ?? 0); $failed = (int) (data_get($summary, 'failed') ?? 0); $matched = (int) (data_get($summary, 'matched') ?? 0); $processed = (int) (data_get($summary, 'processed') ?? 0); $at = (string) (data_get($summary, 'at') ?? ''); $topReasons = (array) (data_get($summary, 'top_reasons', []) ?? []); @endphp

{{ $typeText }} 批次详情

run_id:{{ $runId ?: '-' }}
@if($at !== '')
更新时间:{{ $at }}
@endif
@if(($error ?? '') !== '')
{{ $error }}
@else

命中

{{ $matched }}

本次处理

{{ $processed }}

成功 / 失败

{{ $success }} / {{ $failed }}

一键治理入口

说明:当前批次为“冗余写入到每条订单 meta.last_result”的模式;后续可演进为独立批次表。

Top 失败原因

@if(count($topReasons) === 0)
暂无(或尚未写入 last_result)。
@else @foreach($topReasons as $r) @endforeach
原因 次数
{{ (string) (data_get($r, 'reason') ?? '-') }} {{ (int) (data_get($r, 'count') ?? 0) }}
@endif
@endif @endsection