feat: Add runtime overrides for reservation settings and update high value rooms

- Introduced new command-line arguments for runtime configuration:
  - `--reservation-back-swipe-delay`: Adjusts swipe delay after rollback (only effective when rollback verification is disabled).
  - `--reservation-preempt-min-value`: Sets the minimum value for preempting reservations.
  - `--fudai-find-max-attempts`: Limits the maximum attempts to find the 福袋 icon.

- Updated `high_value_rooms.json` to reflect new room entries and updated timestamps.
- Modified `reservations.json` to change the current reservation details and added a new reservation entry.
- Enhanced `web_gui.py` to support new runtime parameters from the GUI.
- Updated `app.js` and `index.html` in the web UI to include new settings for 福袋 attempts, reservation preemption value, and swipe delay.
This commit is contained in:
Your Name committed 2025-12-15 20:31:41 +08:00
1 parent 02b2930639
commit ea8d221543
8 files changed
+531 -335

No files matched your search

+14 -13
View File
@@ -131,19 +131,15 @@
<input id="reset_after_swipes" class="input" data-key="reset_after_swipes" data-type="int" type="number" min="1" step="1" />
<div class="hint">用于需要循环切换时的回退阈值;配合上方开关启用</div>
</div>
<div class="row grid2">
<div>
<label class="label">福袋图标等待最大秒数</label>
<input id="fudai_icon_max_wait_seconds" class="input" data-key="fudai_icon_max_wait_seconds" data-type="float" type="number" min="0" step="0.1" />
<div class="hint">默认 4.0 秒;自适应可缩短该等待时间</div>
</div>
<div>
<label class="label">启用自适应等待时间</label>
<label class="check">
<input id="fudai_icon_adaptive_enabled" type="checkbox" data-key="fudai_icon_adaptive_enabled" data-type="bool" />
<span>启用</span>
</label>
</div>
<div class="row">
<label class="label">找福袋最大尝试次数</label>
<input id="fudai_find_max_attempts" class="input" data-key="fudai_find_max_attempts" data-type="int" type="number" min="1" max="50" step="1" />
<div class="hint">找小福袋图标时的最大重试次数,默认 5</div>
</div>
<div class="row">
<label class="label">预约抢占最小价值(元)</label>
<input id="reservation_preempt_min_value" class="input" data-key="reservation_preempt_min_value" data-type="float" type="number" min="0" step="1" />
<div class="hint">低于该价值的预约不会抢占当前任务;0 表示任何预约可抢占</div>
</div>
</div>
@@ -247,6 +243,11 @@
<span>启用回退校验</span>
</label>
</div>
<div class="row">
<label class="label">回退回滑快速延迟(秒,未启用回退校验时生效)</label>
<input id="reservation_back_swipe_delay" class="input" data-key="reservation_back_swipe_delay" data-type="float" type="number" min="0.2" step="0.1" />
<div class="hint">较小值能加快回退速度;当启用回退校验时仍使用兼容的较慢延迟。</div>
</div>
<div class="sectionTitle">定时禁抢(仅养号)</div>
<div class="row">