You've already forked FrameTour-BE
fix(dto): 扩展照片类型判断逻辑
- 修改 isPhoto 方法以支持类型 2 和 3 作为照片类型 - 保持原有的空值检查逻辑不变 - 确保向后兼容性的同时增加新的照片类型支持
This commit is contained in:
@@ -59,7 +59,7 @@ public class ZTSourceMessage {
|
||||
* 判断是否为照片
|
||||
*/
|
||||
public boolean isPhoto() {
|
||||
return sourceType != null && sourceType == 2;
|
||||
return sourceType != null && (sourceType == 2 || sourceType == 3);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user