From 08e5907ef670add64dc67dd761fe8ab36ffa8811 Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Mon, 20 Jan 2025 22:42:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor(main):=20=E8=B0=83=E6=95=B4=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E4=BD=BF=E7=94=A8=E9=81=93=E5=85=B7=E7=9A=84=E5=8F=91?= =?UTF-8?q?=E9=80=81=E9=97=B4=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将批量使用道具的发送间隔从 100 毫秒调整为 5000 毫秒 - 优化了批量使用道具的逻辑,减少频繁发送请求的次数 --- main.min_jocw9Tu2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.min_jocw9Tu2.js b/main.min_jocw9Tu2.js index eef3e2d..04714cc 100644 --- a/main.min_jocw9Tu2.js +++ b/main.min_jocw9Tu2.js @@ -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);