fix: 修复默认轨迹推送默认参数填充

This commit is contained in:
hardstylewyl 2024-12-19 10:11:23 +08:00
parent 98d79712d6
commit 4e87546ed1

View File

@ -257,15 +257,15 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
}; };
var dict = new Dictionary<string, object>() var dict = new Dictionary<string, object>()
{ {
// 推真实的发生地和发生时间(时间是计算后的) //推真实的发生地和发生时间(时间是计算后的)
// { "location", log.TrackPlace }, { "location", log.TrackPlace },
// { "date", trackDateStr }, { "date", trackDateStr },
// { "timeZone", config.TrackTimeZone ?? log.TrackTimeZone }, { "timeZone", config.TrackTimeZone ?? log.TrackTimeZone },
// { "description", config.TrackEnContentValue }, { "description", config.TrackEnContentValue },
// { "descriptionCn", config.TrackContentValue }, { "descriptionCn", config.TrackContentValue },
// { "code", config.TrackContentCodeValue }, { "code", config.TrackContentCodeValue },
// { "status", config.TrackStatusValue }, { "status", config.TrackStatusValue },
// { "extra", config.ExpandFieldsValue } { "extra", config.ExpandFieldsValue }
}; };
body.Data.Add(dict); body.Data.Add(dict);
log.PushContent = body.ToJson(); log.PushContent = body.ToJson();
@ -297,15 +297,15 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
}; };
var dict = new Dictionary<string, object>() var dict = new Dictionary<string, object>()
{ {
// // 推真实的发生地和发生时间(时间是计算后的) // 推真实的发生地和发生时间(时间是计算后的)
// { "location", log.TrackPlace }, { "location", log.TrackPlace },
// { "date", trackDateStr }, { "date", trackDateStr },
// { "timeZone", config.TrackTimeZone ?? log.TrackTimeZone }, { "timeZone", config.TrackTimeZone ?? log.TrackTimeZone },
// { "description", config.TrackEnContentValue }, { "description", config.TrackEnContentValue },
// { "descriptionCn", config.TrackContentValue }, { "descriptionCn", config.TrackContentValue },
// { "code", config.TrackContentCodeValue }, { "code", config.TrackContentCodeValue },
// { "status", config.TrackStatusValue }, { "status", config.TrackStatusValue },
// { "extra", config.ExpandFieldsValue } { "extra", config.ExpandFieldsValue }
}; };
body.Data.Add(dict); body.Data.Add(dict);