fix:修复轨迹比较字段的验证忽略了NewExtra的问题

This commit is contained in:
hardstylewyl 2025-04-17 16:49:47 +08:00
parent dc257cf49b
commit 3783608594

View File

@ -488,7 +488,7 @@ public partial class TrackService : ApplicationService, ITrackService
throw new BusinessException(message: "【预计签收时间】和【签收地时区】必须同时输入");
}
if (!string.IsNullOrWhiteSpace(compareFields) && string.IsNullOrWhiteSpace(extra))
if (!string.IsNullOrWhiteSpace(compareFields) && string.IsNullOrWhiteSpace(newExtra ?? extra))
{
throw new BusinessException(message: "当输入了【轨迹对比字段】则轨迹扩展是必须的的");
}