fix:推送bug
This commit is contained in:
parent
e21a4b03c1
commit
11e64a07d3
@ -34,8 +34,6 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
|
||||
[CapSubscribe(GlobalConst.TrackPushSubscribe, Group = GlobalConst.TrackPushSubscribe)]
|
||||
public async Task ConsumerAsync(TrackPushEvent @event)
|
||||
{
|
||||
InterfaceRelayUnifyResultDto res = null!;
|
||||
|
||||
var order = await _orderRepository.GetFirstAsync(x =>
|
||||
x.Id == @event.OrderId, x => new
|
||||
{
|
||||
@ -101,8 +99,6 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
if (config == null) return;
|
||||
|
||||
// 往es 写推送日志
|
||||
await _trackPushRecordsRepository.AddAsync(log);
|
||||
|
||||
@ -113,7 +109,7 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
|
||||
OrderId = @event.OrderId,
|
||||
TrackCode = @event.TrackCode,
|
||||
IsSuccess = log.IsSuccess,
|
||||
Message = res.Msg
|
||||
Message = log.Message
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user