You've already forked FrameTour-BE
fix(service): 修复ZTSourceDataService中照片类型设置逻辑
- 将硬编码的照片类型值替换为从消息对象获取的动态类型值 - 确保entity.setType()方法正确反映实际的消息来源类型 - 维持原有缩略图URL和设备ID等其他属性的设置逻辑不变
This commit is contained in:
@@ -114,7 +114,7 @@ public class ZTSourceDataService {
|
|||||||
entity.setDeviceId(message.getDeviceId());
|
entity.setDeviceId(message.getDeviceId());
|
||||||
entity.setUrl(message.getSourceUrl()); // 使用sourceUrl,不使用缩略图
|
entity.setUrl(message.getSourceUrl()); // 使用sourceUrl,不使用缩略图
|
||||||
entity.setThumbUrl(message.getThumbnailUrl()); // 设置缩略图URL
|
entity.setThumbUrl(message.getThumbnailUrl()); // 设置缩略图URL
|
||||||
entity.setType(2); // 照片类型
|
entity.setType(message.getSourceType()); // 照片类型
|
||||||
|
|
||||||
// 人脸样本ID处理
|
// 人脸样本ID处理
|
||||||
entity.setFaceSampleId(message.getFaceSampleId());
|
entity.setFaceSampleId(message.getFaceSampleId());
|
||||||
|
|||||||
Reference in New Issue
Block a user