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:
1 parent
02b2930639
commit
ea8d221543
8 files changed
+531
-335
No files matched your search
+21
@@ -717,6 +717,27 @@ class ProcRunner:
|
||||
cmd.append("--reservation-back-verify-enabled")
|
||||
else:
|
||||
cmd.append("--reservation-back-verify-disabled")
|
||||
# 回退回滑快速延迟(可由 Run 面板设置):仅在未启用回退校验时生效
|
||||
try:
|
||||
rbd = float(_pick("reservation_back_swipe_delay", 0) or 0)
|
||||
except Exception:
|
||||
rbd = 0.0
|
||||
if rbd > 0:
|
||||
cmd += ["--reservation-back-swipe-delay", str(rbd)]
|
||||
# 预约抢占最小价值(GUI 启动时可覆盖)
|
||||
try:
|
||||
rpmin = float(_pick("reservation_preempt_min_value", 0) or 0)
|
||||
except Exception:
|
||||
rpmin = 0.0
|
||||
if rpmin > 0:
|
||||
cmd += ["--reservation-preempt-min-value", str(rpmin)]
|
||||
# 找福袋最大尝试次数(GUI 启动时可覆盖)
|
||||
try:
|
||||
fudai_find_max_attempts = int(_pick("fudai_find_max_attempts", 0) or 0)
|
||||
except Exception:
|
||||
fudai_find_max_attempts = 0
|
||||
if fudai_find_max_attempts > 0:
|
||||
cmd += ["--fudai-find-max-attempts", str(fudai_find_max_attempts)]
|
||||
|
||||
self._start_process(cmd)
|
||||
|
||||
|
||||
Reference in new issue
Block a user