|
|
@@ -196,14 +196,17 @@ class FeedbackConsultSubmitContractRedTest {
|
|
|
@Test
|
|
|
@DisplayName("RED-6:controller 须暴露专用在线客服/反馈提交端点(G-4)")
|
|
|
void controller_hasConsultEndpoint() {
|
|
|
- // 只看 @PostMapping(...) 的路由路径,避免「优先客服」等会员权益文案造成假阳性
|
|
|
+ // 只看 @PostMapping(...) 的路由路径,且必须是「反馈域」的客服接入端点:
|
|
|
+ // 排除 /api/butler/one-on-one/consult/*(真人管家 1v1,属 SC-H 域,非 SC-P-83 在线客服)
|
|
|
boolean found = hasPostMappingToken(
|
|
|
sourcesUnder("src/main/java/com/etotem/cfc/controller"),
|
|
|
- "consult", "kefu", "handoff", "agent", "客服");
|
|
|
+ "feedback/consult", "consult/feedback", "kefu", "客服", "feedback/handoff");
|
|
|
assertTrue(found,
|
|
|
- "[feedback.consult.submit] controller 层没有路由含 consult/kefu/客服/handoff/agent 的"
|
|
|
- + " @PostMapping 端点:当前只有 /api/health/feedback/submit(AI 解答),"
|
|
|
- + "在线客服(人工/工单)专用端点缺失(缺口 G-4,SC-P-83)。");
|
|
|
+ "[feedback.consult.submit] controller 层缺少「反馈域」客服接入 @PostMapping 端点"
|
|
|
+ + "(feedback/consult、consult/feedback、kefu、客服、feedback/handoff 等路由):"
|
|
|
+ + "当前只有 /api/health/feedback/submit(AI 解答),"
|
|
|
+ + "/api/butler/one-on-one/consult/* 属真人管家 SC-H 域,非 SC-P-83 在线客服;"
|
|
|
+ + "在线客服(人工/工单)专用端点缺失(缺口 G-4)。");
|
|
|
}
|
|
|
|
|
|
// ==================== RED 7:越权校验(TC-P-83-P) ====================
|