feat(platform-orders): 列表/导出回执数优先读 payment_summary.count(含测试)
This commit is contained in:
@@ -678,8 +678,9 @@ class PlatformOrderController extends Controller
|
||||
}
|
||||
|
||||
$receipts = (array) (data_get($order->meta, 'payment_receipts', []) ?? []);
|
||||
$receiptCount = count($receipts);
|
||||
$latestReceipt = $receiptCount > 0 ? end($receipts) : null;
|
||||
$receiptSummaryCount = data_get($order->meta, 'payment_summary.count');
|
||||
$receiptCount = $receiptSummaryCount !== null ? (int) $receiptSummaryCount : count($receipts);
|
||||
$latestReceipt = count($receipts) > 0 ? end($receipts) : null;
|
||||
|
||||
$refunds = (array) (data_get($order->meta, 'refund_receipts', []) ?? []);
|
||||
$refundSummaryCount = data_get($order->meta, 'refund_summary.count');
|
||||
|
||||
Reference in New Issue
Block a user