fix(dto): 扩展照片类型判断逻辑

- 修改 isPhoto 方法以支持类型 2 和 3 作为照片类型
- 保持原有的空值检查逻辑不变
- 确保向后兼容性的同时增加新的照片类型支持
This commit is contained in:
2025-12-05 10:52:06 +08:00
parent eade5f8092
commit 7a19f18962

View File

@@ -59,7 +59,7 @@ public class ZTSourceMessage {
* 判断是否为照片
*/
public boolean isPhoto() {
return sourceType != null && sourceType == 2;
return sourceType != null && (sourceType == 2 || sourceType == 3);
}
}