feat(admin): 订单详情查找订阅链接支持一键绑定(携带 attach_order_id)

This commit is contained in:
萝卜
2026-03-15 17:11:29 +08:00
parent 973576f045
commit bb5fbfde4d
2 changed files with 79 additions and 0 deletions

View File

@@ -279,6 +279,9 @@
$missingSubscriptionHelpUrl = \App\Support\BackUrl::withBack('/admin/site-subscriptions?' . \Illuminate\Support\Arr::query([
'merchant_id' => (int) ($order->merchant_id ?? 0) ?: null,
'plan_id' => (int) ($order->plan_id ?? 0) ?: null,
// 从订单详情跳过去挑订阅:在订阅列表行内提供“一键绑定到该订单”按钮
'attach_order_id' => (int) ($order->id ?? 0) ?: null,
'attach_back' => $orderShowSelf,
'page' => null,
]), $orderShowSelf);
}
@@ -439,6 +442,9 @@
$missingSubHelpUrlForRelationBlock = \App\Support\BackUrl::withBack('/admin/site-subscriptions?' . \Illuminate\Support\Arr::query([
'merchant_id' => (int) ($order->merchant_id ?? 0) ?: null,
'plan_id' => (int) ($order->plan_id ?? 0) ?: null,
// 从订单详情跳过去挑订阅:在订阅列表行内提供“一键绑定到该订单”按钮
'attach_order_id' => (int) ($order->id ?? 0) ?: null,
'attach_back' => $orderShowSelf,
'page' => null,
]), $orderShowSelf);
}