订阅详情:平台订单跳转链接统一 Arr::query 且避免 &

This commit is contained in:
萝卜
2026-03-13 20:09:53 +00:00
parent 6f3d293aaa
commit 4a9d94c186
3 changed files with 187 additions and 3 deletions

View File

@@ -331,7 +331,7 @@
<span class="muted"></span>
<a href="?order_sync_status=syncable" class="muted">可同步</a>
<span class="muted"></span>
<a href="/admin/platform-orders?site_subscription_id={{ $subscription->id }}&back={{ urlencode($selfWithoutBack) }}" class="muted">在平台订单页打开</a>
<a href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id]) !!}" class="muted">在平台订单页打开</a>
@if($cur)
<span class="muted">(当前:{{ $cur }}</span>
@endif
@@ -368,7 +368,10 @@
@endphp
<tr>
<td>{{ $order->id }}</td>
<td><a href="/admin/platform-orders/{{ $order->id }}?back={{ urlencode($selfWithoutBack) }}">{{ $order->order_no }}</a></td>
@php
$orderShowUrl = '/admin/platform-orders/' . $order->id . '?' . \Illuminate\Support\Arr::query(['back' => $selfWithoutBack]);
@endphp
<td><a href="{!! $orderShowUrl !!}">{{ $order->order_no }}</a></td>
<td>{{ $order->status }}</td>
<td>{{ $order->payment_status }}</td>
<td>¥{{ number_format((float) $order->payable_amount, 2) }} / ¥{{ number_format((float) $order->paid_amount, 2) }}</td>
@@ -386,7 +389,7 @@
@endif
</td>
<td>
<a href="/admin/platform-orders/{{ $order->id }}?back={{ urlencode($selfWithoutBack) }}">详情</a>
<a href="{!! $orderShowUrl !!}">详情</a>
</td>
</tr>
@empty