From 3dcfc02e9fb8698d1f2b00a9b5c4d84ca39c8020 Mon Sep 17 00:00:00 2001 From: chen Date: Thu, 17 Sep 2026 15:41:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E6=A0=A1=E9=AA=8C=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF=E5=8A=A8=E6=80=81=E9=80=82=E9=85=8D?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A7=92=E8=89=B2=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/shopro/Config.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/admin/controller/shopro/Config.php b/application/admin/controller/shopro/Config.php index 6241469..97351e8 100644 --- a/application/admin/controller/shopro/Config.php +++ b/application/admin/controller/shopro/Config.php @@ -268,14 +268,16 @@ class Config extends Common continue; } if ($prev !== null && $val < $prev) { - $this->error('创客 V1–V6 单笔基数必须递增'); + $makerName = !empty($save['partner_role_name_maker']) ? $save['partner_role_name_maker'] : '创客'; + $this->error($makerName . ' V1–V6 单笔基数必须递增'); } $prev = $val; } } if (isset($save['partner_team_total'], $save['partner_venue_split']) && (float) $save['partner_venue_split'] > (float) $save['partner_team_total']) { - $this->error('酒道馆份额不能大于团队拆分总额'); + $venueName = !empty($save['partner_role_name_venue']) ? $save['partner_role_name_venue'] : '酒道馆'; + $this->error($venueName . '份额不能大于团队拆分总额'); } $configs = ShoproConfig::setConfigs('shop.commission', $save); $this->success('规则已更新,仅对之后的新订单生效。', null, $configs);