change:全量推送即使是手工推也要校验

This commit is contained in:
李鹏军 2024-04-01 18:44:42 +08:00
parent 7331076e44
commit e21a4b03c1

View File

@ -79,6 +79,10 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
@event.TrackCode);
if (config is { IsAllPush: true })
{
// 推断 本次推送 是否可行
config = await _trackPushCacheService.IsValidPushAsync(order.SubSystemId, order.CustomId,
order.LatestPushTrackCode, @event.TrackCode);
allPush = true;
}
}
@ -172,7 +176,7 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
if (history != default)
{
body = JObject.Parse(history.PushContent);
((JArray)body["data"]!).Add(track);
((JArray)body["data"]!).Add(JObject.FromObject(track));
}
}