平台订单详情:导出链接 query 顺序稳定(download 优先)
This commit is contained in:
@@ -328,7 +328,8 @@
|
|||||||
<h3 style="margin:0;">支付回执(对账留痕)</h3>
|
<h3 style="margin:0;">支付回执(对账留痕)</h3>
|
||||||
@php
|
@php
|
||||||
$makeExportLedgerUrl = function (array $query = []) use ($order) {
|
$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);
|
return '/admin/platform-orders/' . $order->id . '/export-ledger?' . \Illuminate\Support\Arr::query($query);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user