修正登录测试台的探针:投顾那个按钮其实该是客户视角
/api/v1/advisor/recommendations/published 的语义是"**我(客户)自己**已发布的方案" —— 服务端按 `customer_id == 调用者 user_id` 过滤(权限码 `product-recommendation:read:self` 的 `:self` 正对应这一点),所以**投顾调它必然为空**:筛的是 customer_id = 投顾自己的 id。 把它标成 customer 角色,免得再用投顾账号点它、然后怀疑权限。 查证过程中确认了三处数据空缺(投顾合并后那 21 张 advisor_* 表是新建的): - client_facing_content = 0 行(没有任何投顾方案) - sys_customer_assignment = 0 行(投顾没绑定任何客户,故 customer_ids 为空) - fin_risk_assessment 里没有 9001(客户画像的前置"完成开户风险测评问卷"未满足)
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user