From 3a7c13f02685e23359c8b9e2288bbd0a8e562395 Mon Sep 17 00:00:00 2001 From: chen Date: Tue, 29 Sep 2026 21:28:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(commission):=20=E4=BC=98=E5=8C=96=E5=88=86?= =?UTF-8?q?=E9=94=80=E5=95=86=E5=8D=87=E7=BA=A7=E9=94=81=E5=AE=9A=E5=BC=80?= =?UTF-8?q?=E5=85=B3=E4=B8=8E=E9=9B=B7=E8=BE=BE=E6=A0=87=E8=AF=86=E6=96=87?= =?UTF-8?q?=E6=A1=88=E6=8F=90=E7=A4=BA=EF=BC=8C=E9=98=B2=E6=AD=A2=E8=AF=AF?= =?UTF-8?q?=E9=94=81=E5=AE=9A=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/shopro/commission/agent/detail.html | 20 ++++++++++++++----- .../view/shopro/commission/agent/index.html | 10 ++++++++-- tests/test_agent_upgrade_cumulative.php | 4 ++-- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/application/admin/view/shopro/commission/agent/detail.html b/application/admin/view/shopro/commission/agent/detail.html index f08cb60..7e3d873 100644 --- a/application/admin/view/shopro/commission/agent/detail.html +++ b/application/admin/view/shopro/commission/agent/detail.html @@ -412,9 +412,13 @@ {if $auth->check('shopro/commission/agent/edit')} - - +
+ + + 已允许 (达标自动晋升) + ⚠️ 已锁定 (禁止自动晋升) +
{/if}
@@ -578,7 +582,7 @@
- 已锁定升级 + ⚠️ 升级已被锁定(禁止自动晋升) ✓ 晋升条件全部达成 @@ -1047,8 +1051,14 @@ value: 'id', label: 'name', children: 'children', checkStrictly: true, emitPath: true }" clearable filterable style="width:100%" @change="onIdentityAreaChange"> - + +
+ ⚠️ 已开启锁定:该分销商将禁止自动升级(即使满足业绩条件也不会晋升) +
+
+ ✓ 未锁定:正常允许分销商根据业绩达标自动晋升 +
diff --git a/application/admin/view/shopro/commission/agent/index.html b/application/admin/view/shopro/commission/agent/index.html index f81fd12..831a117 100644 --- a/application/admin/view/shopro/commission/agent/index.html +++ b/application/admin/view/shopro/commission/agent/index.html @@ -63,7 +63,7 @@
{{ scope.row.role_names?.venue || '酒道馆' }} {{ scope.row.role_names?.county || '区县代理' }} - {{ scope.row.role_names?.partner || '合伙股东' }} + {{ scope.row.role_names?.partner || '合伙人' }}
@@ -279,8 +279,14 @@ }" clearable filterable style="width:100%" @change="onIdentityAreaChange">
编码:{{ identity.form.county_code || '-' }}
- + +
+ ⚠️ 已开启锁定:该分销商将禁止自动升级(即使满足业绩条件也不会晋升) +
+
+ ✓ 未锁定:正常允许分销商根据业绩达标自动晋升 +
diff --git a/tests/test_agent_upgrade_cumulative.php b/tests/test_agent_upgrade_cumulative.php index 7ba05a3..fd18c08 100644 --- a/tests/test_agent_upgrade_cumulative.php +++ b/tests/test_agent_upgrade_cumulative.php @@ -55,8 +55,8 @@ use app\admin\model\shopro\commission\Level as LevelModel; echo "=== 开始分销商升级规则验证 ===" . PHP_EOL; -// 1. 获取目标测试账号(User ID 8) -$userId = 8; +// 1. 获取目标测试账号(默认为 User ID 17) +$userId = intval($argv[1] ?? 17); $agent = AgentModel::where('user_id', $userId)->find(); if (!$agent) { die("未找到用户 ID {$userId} 的分销商记录\n");