refactor(face): 调整人脸识别匹配逻辑以支持场景参数

- 修改 PrinterTvController 中 faceUpload 方法的 scene 参数值从 print 改为 tv
- 在 FaceServiceImpl 中为人脸匹配方法增加 scene 参数支持
- 更新 FaceMatchingOrchestrator 的 orchestrateMatching 方法签名以接收 scene 参数
- 在 FaceService 接口中新增带 scene 参数的 matchFaceId 方法定义
- 更新 VideoTaskGenerator 中调用 matchFaceId 方法时传入 scene 参数
This commit is contained in:
2025-12-17 23:16:48 +08:00
parent 9e6b623b0e
commit 00dd6a16a3
5 changed files with 10 additions and 5 deletions

View File

@@ -195,7 +195,7 @@ public class PrinterTvController {
@PathVariable Long scenicId) {
// 复用 faceUpload 方法的去重逻辑
// memberId=0L 表示打印机大屏用户,scene="print" 会触发自动添加打印逻辑并等待完成
FaceRecognizeResp resp = pcFaceService.faceUpload(file, scenicId, 0L, "print");
FaceRecognizeResp resp = pcFaceService.faceUpload(file, scenicId, 0L, "tv");
return ApiResponse.success(resp);
}