This commit is contained in:
@@ -2709,8 +2709,12 @@ func (s *Service) enqueueCommissionCalculation(ctx context.Context, orderID uint
|
||||
return
|
||||
}
|
||||
|
||||
linkage := auditcontext.From(ctx)
|
||||
// 直接传 map,由 EnqueueTask 内部统一序列化一次(传 []byte 会导致 sonic.Marshal 二次 base64 编码)
|
||||
if err := s.queueClient.EnqueueTask(ctx, constants.TaskTypeCommission, map[string]any{"order_id": orderID}); err != nil {
|
||||
if err := s.queueClient.EnqueueTask(ctx, constants.TaskTypeCommission, map[string]any{
|
||||
"order_id": orderID, "request_id": linkage.RequestID, "correlation_id": linkage.CorrelationID,
|
||||
"parent_event_id": linkage.ParentEventID,
|
||||
}); err != nil {
|
||||
s.logger.Error("佣金计算任务入队失败",
|
||||
zap.Uint("order_id", orderID),
|
||||
zap.Error(err),
|
||||
|
||||
Reference in New Issue
Block a user