From 68bdd6b42c6759640700eee78bba3156bb452845 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Sat, 8 Aug 2026 18:57:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E9=AB=98=E5=92=8C=E5=B9=B3=E5=B0=8F?= =?UTF-8?q?=E5=BA=97=E5=9B=BA=E5=AE=9A=E6=8A=A2=E8=B4=AD=E6=AC=A1=E6=95=B0?= =?UTF-8?q?=E4=B8=8A=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/console/ControlStrip.vue | 2 +- internal/app/app_seckill.go | 4 ++-- internal/seckill/scheduler.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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