This commit is contained in:
momo 2023-10-07 16:14:46 +08:00
parent 0b8fc0915b
commit 9cfdfdbc77

View File

@ -70,7 +70,7 @@ func (l *CreateOrderLogic) CreateOrder(req *types.CreateOrderReq, userinfo *auth
// }, []interface{}{res.OrderSn}) // }, []interface{}{res.OrderSn})
// 延时任务 // 延时任务
time.AfterFunc(time.Minute*1, func() { time.AfterFunc(time.Minute*30, func() {
orderSn := res.OrderSn orderSn := res.OrderSn
fmt.Println("延时任务: OrderSn--", orderSn) fmt.Println("延时任务: OrderSn--", orderSn)
ctx := context.Background() ctx := context.Background()