平台订单详情:导出链接 query 顺序稳定(download 优先)

This commit is contained in:
萝卜
2026-03-13 21:24:34 +00:00
parent bfcb7d77fa
commit 9c700b2241

View File

@@ -328,7 +328,8 @@
<h3 style="margin:0;">支付回执(对账留痕)</h3>
@php
$makeExportLedgerUrl = function (array $query = []) use ($order) {
$query = $query + ['download' => 1];
// download 必须显式为 1导出安全阀且为了测试/口径稳定,固定放在 query 的第一位
$query = ['download' => 1] + $query;
return '/admin/platform-orders/' . $order->id . '/export-ledger?' . \Illuminate\Support\Arr::query($query);
};