|
|
@@ -169,7 +169,7 @@
|
|
|
<a-input-number
|
|
|
v-model:value="form.sweepProcessCount"
|
|
|
:min="1"
|
|
|
- :max="configStore.config.buff_sweep_max_worker_count ?? 32"
|
|
|
+ :max="10000"
|
|
|
:precision="0"
|
|
|
placeholder="并行路数"
|
|
|
class="input-narrow"
|
|
|
@@ -613,8 +613,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
- <!-- Worker 按钮组 -->
|
|
|
- <div class="sweep-log-worker-buttons" style="margin-bottom: 12px; display: flex; gap: 8px;">
|
|
|
+ <!-- Worker 按钮组 - 每行10个,自动换行 -->
|
|
|
+ <div class="sweep-log-worker-buttons" style="margin-bottom: 12px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px;">
|
|
|
<a-button
|
|
|
v-for="worker in sweepWorkerList"
|
|
|
:key="worker.worker_index"
|
|
|
@@ -1559,7 +1559,8 @@ function applyConfigToForm(data: Record<string, any>) {
|
|
|
if (data.sweepAssistantLevel) form.sweepAssistantLevel = data.sweepAssistantLevel
|
|
|
if (data.sweepProcessCount != null && Number.isFinite(Number(data.sweepProcessCount))) {
|
|
|
const n = Math.floor(Number(data.sweepProcessCount))
|
|
|
- const maxWorkerCount = configStore.config.buff_sweep_max_worker_count ?? 32
|
|
|
+ // 特殊版本:上限10000,不受服务器配置限制
|
|
|
+ const maxWorkerCount = 10000
|
|
|
form.sweepProcessCount = n >= 1 ? Math.min(maxWorkerCount, n) : 3
|
|
|
}
|
|
|
}
|
|
|
@@ -1654,11 +1655,11 @@ async function saveConditions() {
|
|
|
message.warning('Steam 卡价比例不能小于 4,请重新填写')
|
|
|
return
|
|
|
}
|
|
|
- // 验证系统配置限制
|
|
|
- const maxWorkerCount = configStore.config.buff_sweep_max_worker_count ?? 32
|
|
|
+ // 验证系统配置限制(特殊版本:不限制线程数)
|
|
|
+ const maxWorkerCount = 10000
|
|
|
const minSteamCardRatio = configStore.config.buff_steam_card_ratio_min ?? 4
|
|
|
if (form.sweepProcessCount > maxWorkerCount) {
|
|
|
- message.error(`保存失败:扫货线程数不能超过系统配置的最大值 ${maxWorkerCount}`)
|
|
|
+ message.error(`保存失败:扫货线程数不能超过最大值 ${maxWorkerCount}`)
|
|
|
return
|
|
|
}
|
|
|
if (form.steamCardRatio < minSteamCardRatio) {
|
|
|
@@ -2977,14 +2978,14 @@ async function handleStart(source: 'manual' | 'auto' = 'manual') {
|
|
|
if (source === 'manual') message.warning('请先填写利润率')
|
|
|
return
|
|
|
}
|
|
|
- // 验证系统配置限制
|
|
|
- const maxWorkerCount = configStore.config.buff_sweep_max_worker_count ?? 32
|
|
|
+ // 验证系统配置限制(特殊版本:不限制线程数,上限10000)
|
|
|
+ const maxWorkerCount = 10000
|
|
|
const minSteamCardRatio = configStore.config.buff_steam_card_ratio_min ?? 4
|
|
|
if (form.sweepProcessCount > maxWorkerCount) {
|
|
|
if (source === 'manual') {
|
|
|
- message.error(`选品失败:扫货线程数不能超过系统配置的最大值 ${maxWorkerCount}`)
|
|
|
+ message.error(`选品失败:扫货线程数不能超过最大值 ${maxWorkerCount}`)
|
|
|
} else {
|
|
|
- message.error(`自动选品失败:扫货线程数不能超过系统配置的最大值 ${maxWorkerCount}`)
|
|
|
+ message.error(`自动选品失败:扫货线程数不能超过最大值 ${maxWorkerCount}`)
|
|
|
}
|
|
|
return
|
|
|
}
|
|
|
@@ -3222,12 +3223,12 @@ async function handleStartSweep(isAuto: boolean, sourceSelectionRequestId?: numb
|
|
|
if (!isAuto) message.warning('请至少勾选一个 Steam 账号后再开始扫货')
|
|
|
return
|
|
|
}
|
|
|
- // 验证系统配置限制
|
|
|
- const maxWorkerCount = configStore.config.buff_sweep_max_worker_count ?? 32
|
|
|
+ // 验证系统配置限制(特殊版本:不限制线程数,上限10000)
|
|
|
+ const maxWorkerCount = 10000
|
|
|
const minSteamCardRatio = configStore.config.buff_steam_card_ratio_min ?? 4
|
|
|
if (form.sweepProcessCount > maxWorkerCount) {
|
|
|
if (!isAuto) {
|
|
|
- message.error(`扫货启动失败:扫货线程数不能超过系统配置的最大值 ${maxWorkerCount}`)
|
|
|
+ message.error(`扫货启动失败:扫货线程数不能超过最大值 ${maxWorkerCount}`)
|
|
|
}
|
|
|
buffSweepStore.sweepRunning = false
|
|
|
return
|