fix:调整订单商品单位
This commit is contained in:
parent
90846eb673
commit
6b44eb780d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user