diff --git a/frontend/src/components/console/ControlStrip.vue b/frontend/src/components/console/ControlStrip.vue index 681ddb0..9af08b9 100644 --- a/frontend/src/components/console/ControlStrip.vue +++ b/frontend/src/components/console/ControlStrip.vue @@ -185,7 +185,7 @@ onUnmounted(() => {
- +
diff --git a/internal/app/app_seckill.go b/internal/app/app_seckill.go index d2c4d33..9d9bb9a 100644 --- a/internal/app/app_seckill.go +++ b/internal/app/app_seckill.go @@ -29,8 +29,8 @@ func (a *App) StartFixedSeckill(req types.FixedSeckillRequest) types.MessageResu if len(req.AccountProducts) == 0 { return types.MessageResult{Error: "请选择账号和商品"} } - if req.Attempts < 1 || req.Attempts > 100 { - return types.MessageResult{Error: "抢购次数需在 1-100 之间"} + if req.Attempts < 1 || req.Attempts > 100000 { + return types.MessageResult{Error: "抢购次数需在 1-100000 之间"} } if req.DelayMs < 0 || req.DelayMs > 60000 { return types.MessageResult{Error: "抢购间隔需在 0-60000 毫秒之间"} diff --git a/internal/seckill/scheduler.go b/internal/seckill/scheduler.go index c6dd62e..df86822 100644 --- a/internal/seckill/scheduler.go +++ b/internal/seckill/scheduler.go @@ -440,8 +440,8 @@ func (s *Scheduler) RunFixed(accountProducts map[string]string, attempts, delayM if attempts < 1 { attempts = 1 } - if attempts > 100 { - attempts = 100 + if attempts > 100000 { + attempts = 100000 } if delayMs < 0 { delayMs = 0