This commit is contained in:
邹宗楠
2022-07-04 19:42:49 +08:00
parent 91f2f223e4
commit 18b54a0c07

View File

@@ -204,6 +204,7 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
return err
}
globals.SugarLogger.Debug("time.Now().Unix()-order.CreatedAt.Unix()", time.Now().Unix()-order.CreatedAt.Unix())
if time.Now().Unix()-order.CreatedAt.Unix() <= 15 {
return errors.New("操作台频繁,请稍后再取消")
}