diff --git a/src/SJZY.Track.Application/EventHandlers/TrackPushEventHandler.cs b/src/SJZY.Track.Application/EventHandlers/TrackPushEventHandler.cs index c66a7aed..e95906da 100644 --- a/src/SJZY.Track.Application/EventHandlers/TrackPushEventHandler.cs +++ b/src/SJZY.Track.Application/EventHandlers/TrackPushEventHandler.cs @@ -37,11 +37,11 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe var order = await _orderRepository.GetFirstAsync(x => x.Id == @event.OrderId, x => new { - x.SubSystemId, x.LatestPushTrackCode, x.CustomId + x.SubSystemId, x.LatestPushTrackCode, x.QuestionType, x.CustomId }); - if (order == null) return; + if (order == null || order.QuestionType == (int)TrackProblemType.Error) return; // 是否通知? - TrackPushContentConfigDto? config = null; + TrackPushContentConfigDto? config; var log = new TrackPushRecordIndex { @@ -58,7 +58,6 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe CreateTime = DateTime.Now }; - var allPush = false; switch (@event.OptionType) { case OptionType.无: