refactor(main): 调整批量使用道具的发送间隔

- 将批量使用道具的发送间隔从 100 毫秒调整为 5000 毫秒
- 优化了批量使用道具的逻辑,减少频繁发送请求的次数
This commit is contained in:
2025-01-20 22:42:18 +08:00
parent bd23c5d63a
commit 08e5907ef6

View File

@@ -20295,13 +20295,13 @@ var app;
const batchUse = (num) => {
const batchMax = 99;
return (() => {
t.ThgMu.ins().send_8_11(itemId, Math.min(num, batchMax), curItem.series);
num -= batchMax;
setTimeout(() => {
t.ThgMu.ins().send_8_11(itemId, Math.min(num, batchMax), curItem.series);
num -= batchMax;
if (num > batchMax) {
batchUse(num);
}
}, 100);
}, 5000);
})();
};
batchUse(this.curSelectNum);