From 6b44eb780d83082d94da251369f2daad141f33e2 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Thu, 9 Nov 2023 12:28:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E6=95=B4=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/order/internal/logic/createorderlogic.go | 14 -------------- 1 file changed, 14 deletions(-) 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