change:轨迹刷新不做幂等
This commit is contained in:
parent
e9d304873e
commit
b81733b011
@ -3,6 +3,7 @@ using DotNetCore.CAP.Filter;
|
||||
using SJZY.Expand.ABP.Core;
|
||||
using SJZY.Expand.ABP.Core.Logger;
|
||||
using SJZY.Expand.ABP.Core.PublicMethords;
|
||||
using SJZY.Track.Domain.Consts;
|
||||
|
||||
namespace SJZY.Track.Application.EventHandlers;
|
||||
|
||||
@ -17,6 +18,8 @@ public class CAPFilter : SubscribeFilter
|
||||
/// <returns></returns>
|
||||
public override Task OnSubscribeExecutingAsync(ExecutingContext context)
|
||||
{
|
||||
if (context.DeliverMessage.Headers["cap-msg-name"]!.EndsWith(GlobalConst.TrackRefreshSubscribe))
|
||||
return Task.CompletedTask;
|
||||
var argumentJsonStr = context.Arguments.ToJson();
|
||||
|
||||
context.DeliverMessage.Headers["sjzy-receive-time"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user