diff --git a/server/order/internal/logic/createorderlogic.go b/server/order/internal/logic/createorderlogic.go index 5aaa7c8f..21bf78d1 100644 --- a/server/order/internal/logic/createorderlogic.go +++ b/server/order/internal/logic/createorderlogic.go @@ -55,20 +55,6 @@ func (l *CreateOrderLogic) CreateOrder(req *types.CreateOrderReq, userinfo *auth return resp.SetStatus(&res.ErrorCode) } - // 延时任务 - // l.svcCtx.DelayQueue.AddTask(time.Now().Add(time.Minute*30), constants.QUEUE_NAME_ORDER, func(args ...interface{}) { - // ctx := context.Background() - // orderSn := args[0].(string) - // svcCtx := svc.ServiceContext{ - // Config: l.svcCtx.Config, - // Repositories: l.svcCtx.Repositories, - // } - // svcCtx.Repositories.NewOrder.Close(ctx, &repositories.CloseReq{ - // OrderSn: orderSn, - // Type: 1, - // }) - // }, []interface{}{res.OrderSn}) - // 延时任务 time.AfterFunc(time.Minute*30, func() { orderSn := res.OrderSn