From 55871f39ed13fb7e281b5e9b214180340176fd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Fri, 13 Mar 2026 20:38:48 +0000 Subject: [PATCH] =?UTF-8?q?=E7=BB=AD=E8=B4=B9=E8=AE=A2=E5=8D=95=20remark?= =?UTF-8?q?=20=E5=89=8D=E7=BC=80=E9=85=8D=E7=BD=AE=E5=8C=96=EF=BC=88saassh?= =?UTF-8?q?op.platform=5Forders=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/saasshop.php | 3 +++ resources/views/admin/site_subscriptions/show.blade.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/saasshop.php b/config/saasshop.php index 5288424..d7512a6 100644 --- a/config/saasshop.php +++ b/config/saasshop.php @@ -11,6 +11,9 @@ return [ // 同步失败原因展示截断长度(用于列表/聚合展示,避免撑坏布局)。 'sync_failed_reason_display_truncate_len' => 60, + + // 从订阅详情创建“续费订单”时,默认 remark 的前缀(用于运营追溯/检索)。 + 'renewal_order_remark_prefix' => '来自订阅:', ], // 金额对账相关配置(统一按分取整后做比较,避免浮点误差)。 diff --git a/resources/views/admin/site_subscriptions/show.blade.php b/resources/views/admin/site_subscriptions/show.blade.php index 88d691e..f0daa3b 100644 --- a/resources/views/admin/site_subscriptions/show.blade.php +++ b/resources/views/admin/site_subscriptions/show.blade.php @@ -142,7 +142,7 @@ 'site_subscription_id' => $subscription->id, 'order_type' => 'renewal', 'quantity' => 1, - 'remark' => '来自订阅:' . $subscription->subscription_no, + 'remark' => (string) config('saasshop.platform_orders.renewal_order_remark_prefix', '来自订阅:') . $subscription->subscription_no, // 保留 back:创建订单 -> 订单详情后可一键返回本订阅详情 'back' => $selfWithoutBack, ]);