提高和平小店固定抢购次数上限

This commit is contained in:
yml2213
2026-08-08 18:57:09 +08:00
parent 9d95417e24
commit 68bdd6b42c
3 changed files with 5 additions and 5 deletions
@@ -185,7 +185,7 @@ onUnmounted(() => {
</div>
<div class="schedule-item">
<label>次数</label>
<input v-model.number="fixedAttempts" type="number" min="1" max="100" step="1" @change="saveFixedConfig">
<input v-model.number="fixedAttempts" type="number" min="1" max="100000" step="1" @change="saveFixedConfig">
</div>
<div class="schedule-item">
<label>间隔</label>
+2 -2
View File
@@ -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 毫秒之间"}
+2 -2
View File
@@ -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