diff --git a/tools/login_console.py b/tools/login_console.py index 62073d2..9ec0621 100644 --- a/tools/login_console.py +++ b/tools/login_console.py @@ -152,8 +152,11 @@ function renderProbes(roles, userId) { { label: '角色清单', path: '/api/v1/admin/roles', role: 'admin' }, { label: '我的身份(管理视角)', path: `/api/v1/admin/users/${userId}/roles`, role: 'admin' }, - { label: '已发布投顾方案', path: '/api/v1/advisor/recommendations/published', - role: 'advisor' }, + // ⚠️ 这个接口的语义是"**我(客户)自己**已发布的方案":服务端按 + // `customer_id == 调用者 user_id` 过滤(权限码 `product-recommendation:read:self` + // 的 `:self` 正对应这一点),所以**投顾调它必然为空**。标成 customer 才不会被误用。 + { label: '我已发布的投顾方案(客户视角)', + path: '/api/v1/advisor/recommendations/published', role: 'customer' }, ]; const box = document.getElementById('probes'); box.innerHTML = '';