Files
douyin_guaji-main/gui/components/config_vars.py
T

539 lines
25 KiB
Python

"""GUI Var 工厂:从 ``cfg`` 构建所有 ``tkinter`` Var 实例。
从 ``gui/gui_app.py`` 抽出 127 个 Var 声明。返回名→Var 的 dict,``main()`` 在解构后
继续以原变量名使用(避免改动 134 处现有引用点)。
"""
from __future__ import annotations
import tkinter as tk
from typing import Dict
def build_config_vars(cfg: dict) -> Dict[str, tk.Variable]:
"""从 cfg 构建所有 tk Var 实例,返回名→Var 字典。"""
y_var = tk.IntVar(value=int(cfg.get("y_pianyi", 0) or 0))
enable_back_on_misses_var = tk.BooleanVar(
value=bool(cfg.get("enable_back_on_misses", True))
)
swipe_down_back_enabled_var = tk.BooleanVar(
value=bool(cfg.get("swipe_down_back_enabled", False))
)
swipe_down_back_count_var = tk.IntVar(
value=int(cfg.get("swipe_down_back_count", 3) or 3)
)
needswitch_var = tk.BooleanVar(value=bool(cfg.get("needswitch", True)))
infinite_loop_var = tk.BooleanVar(
value=bool(cfg.get("infinite_loop_enabled", False))
)
wait_minutes_var = tk.IntVar(value=int(cfg.get("wait_minutes", 5) or 5))
min_value_var = tk.DoubleVar(value=float(cfg.get("min_prize_value_yuan", 0) or 0))
min_participants_var = tk.IntVar(value=int(cfg.get("min_participants", 0) or 0))
max_participants_var = tk.IntVar(value=int(cfg.get("max_participants", 0) or 0))
skip_gt_seconds_var = tk.IntVar(
value=int(cfg.get("skip_if_countdown_gt_seconds", 900) or 900)
)
reset_after_swipes_enabled_var = tk.BooleanVar(
value=bool(cfg.get("reset_after_swipes_enabled", False))
)
reset_after_swipes_var = tk.IntVar(
value=int(cfg.get("reset_after_swipes", 10) or 10)
)
reset_after_swipes_action_var = tk.StringVar(
value=str(cfg.get("reset_after_swipes_action", "swipe") or "swipe")
)
enable_back_on_misses_var = tk.BooleanVar(
value=bool(cfg.get("enable_back_on_misses", True))
)
streaming_enabled_var = tk.BooleanVar(
value=bool(cfg.get("enable_streaming_screenshot", True))
)
auto_join_var = tk.BooleanVar(value=bool(cfg.get("auto_join_fansclub", False)))
fansclub_action_var = tk.StringVar(
value=str(cfg.get("fansclub_fail_action", "stay") or "stay").lower()
)
fansclub_click_delay_var = tk.DoubleVar(
value=float(cfg.get("fansclub_click_delay", 0.6) or 0.6)
)
fansclub_auto_wait_var = tk.DoubleVar(
value=float(cfg.get("fansclub_auto_join_wait_seconds", 5.0) or 5.0)
)
fansclub_manual_wait_var = tk.DoubleVar(
value=float(cfg.get("fansclub_manual_wait_seconds", 3.0) or 3.0)
)
high_value_fudai_enabled_var = tk.BooleanVar(
value=bool(cfg.get("high_value_fudai_enabled", False))
)
high_value_fudai_threshold_yuan_var = tk.DoubleVar(
value=float(cfg.get("high_value_fudai_threshold_yuan", 1000) or 1000)
)
high_value_fudai_join_ahead_seconds_var = tk.IntVar(
value=int(cfg.get("high_value_fudai_join_ahead_seconds", 300) or 300)
)
high_value_fudai_max_swipe_back_var = tk.IntVar(
value=int(cfg.get("high_value_fudai_max_swipe_back", 60) or 60)
)
high_value_fudai_max_reservations_var = tk.IntVar(
value=int(cfg.get("high_value_fudai_max_reservations", 5) or 5)
)
high_value_fudai_after_action_var = tk.StringVar(
value=str(cfg.get("high_value_fudai_after_action", "continue") or "continue")
)
high_value_fudai_poll_before_seconds_var = tk.DoubleVar(
value=float(cfg.get("high_value_fudai_poll_before_seconds", 10.0) or 10.0)
)
high_value_room_revisit_enabled_var = tk.BooleanVar(
value=bool(cfg.get("high_value_room_revisit_enabled", True))
)
high_value_room_revisit_only_current_run_var = tk.BooleanVar(
value=bool(cfg.get("high_value_room_revisit_only_current_run", False))
)
high_value_room_revisit_min_interval_seconds_var = tk.IntVar(
value=int(cfg.get("high_value_room_revisit_min_interval_seconds", 300))
)
high_value_room_revisit_max_per_run_var = tk.IntVar(
value=int(cfg.get("high_value_room_revisit_max_per_run", 5))
)
high_value_room_revisit_min_prize_value_var = tk.DoubleVar(
value=float(cfg.get("high_value_room_revisit_min_prize_value", 0.0))
)
high_value_room_revisit_max_age_days_var = tk.IntVar(
value=int(cfg.get("high_value_room_revisit_max_age_days", 30))
)
reservation_back_verify_enabled_var = tk.BooleanVar(
value=bool(cfg.get("reservation_back_verify_enabled", True))
)
reservation_back_swipe_delay_var = tk.DoubleVar(
value=float(cfg.get("reservation_back_swipe_delay", 0) or 0)
)
reservation_back_verify_wait_seconds_var = tk.DoubleVar(
value=float(cfg.get("reservation_back_verify_wait_seconds", 5.0) or 5.0)
)
fudai_find_max_attempts_var = tk.IntVar(
value=int(cfg.get("fudai_find_max_attempts", 0) or 0)
)
fudai_icon_retry_delay_seconds_var = tk.DoubleVar(
value=float(cfg.get("fudai_icon_retry_delay_seconds", 0.6) or 0.6)
)
fudai_icon_max_wait_seconds_var = tk.DoubleVar(
value=float(cfg.get("fudai_icon_max_wait_seconds", 5.0) or 5.0)
)
fudai_disable_content_recognition_var = tk.BooleanVar(
value=bool(cfg.get("fudai_disable_content_recognition", False))
)
fudai_disable_task_recognition_var = tk.BooleanVar(
value=bool(cfg.get("fudai_disable_task_recognition", False))
)
fudai_exit_after_misses_var = tk.IntVar(
value=int(cfg.get("fudai_exit_after_misses", 30) or 30)
)
fudai_click_wait_seconds_var = tk.DoubleVar(
value=float(cfg.get("fudai_click_wait_seconds", 1.0) or 1.0)
)
switch_room_wait_after_stage_diag_seconds_var = tk.DoubleVar(
value=float(cfg.get("switch_room_wait_after_stage_diag_seconds", 7.0) or 7.0)
)
live_room_match_threshold_var = tk.DoubleVar(
value=float(cfg.get("live_room_match_threshold", 0.8) or 0.8)
)
swipe_duration_ms_var = tk.IntVar(
value=int(cfg.get("swipe_duration_ms", 600) or 600)
)
swipe_up_start_y_var = tk.IntVar(
value=int(cfg.get("swipe_up_start_y", 1200) or 1200)
)
swipe_up_end_y_var = tk.IntVar(value=int(cfg.get("swipe_up_end_y", 600) or 600))
yg_enabled_var = tk.BooleanVar(value=bool(cfg.get("yanghao_enabled", True)))
yg_actions_enabled_var = tk.BooleanVar(
value=bool(cfg.get("yanghao_enable_actions", True))
)
yg_only_var = tk.BooleanVar(value=bool(cfg.get("yanghao_only", False)))
yg_recommend_duration_var = tk.IntVar(
value=int(cfg.get("yanghao_recommend_duration_seconds", 60) or 60)
)
yg_recommend_interval_var = tk.IntVar(
value=int(cfg.get("yanghao_recommend_interval_seconds", 0) or 0)
)
yg_like_prob_var = tk.DoubleVar(
value=float(cfg.get("yanghao_like_prob", 0.0) or 0.0)
)
yg_fav_prob_var = tk.DoubleVar(value=float(cfg.get("yanghao_fav_prob", 0.0) or 0.0))
yg_comment_prob_var = tk.DoubleVar(
value=float(cfg.get("yanghao_comment_prob", 0.0) or 0.0)
)
yg_dwell_on_action_min_var = tk.DoubleVar(
value=float(cfg.get("yanghao_dwell_on_action_min_seconds", 5) or 5)
)
yg_dwell_on_action_max_var = tk.DoubleVar(
value=float(cfg.get("yanghao_dwell_on_action_max_seconds", 30) or 30)
)
yg_icon_roi_size_var = tk.IntVar(
value=int(cfg.get("yanghao_icon_roi_size", 240) or 240)
)
yg_icon_match_threshold_var = tk.DoubleVar(
value=float(cfg.get("yanghao_icon_match_threshold", 0.72) or 0.72)
)
yg_step_screenshot_var = tk.BooleanVar(
value=bool(cfg.get("yanghao_step_screenshot", False))
)
yg_like_roi_offset_x_var = tk.IntVar(
value=int(cfg.get("yanghao_like_roi_offset_x", 0) or 0)
)
yg_like_roi_offset_y_var = tk.IntVar(
value=int(cfg.get("yanghao_like_roi_offset_y", 0) or 0)
)
yg_fav_roi_offset_x_var = tk.IntVar(
value=int(cfg.get("yanghao_fav_roi_offset_x", 0) or 0)
)
yg_fav_roi_offset_y_var = tk.IntVar(
value=int(cfg.get("yanghao_fav_roi_offset_y", 0) or 0)
)
yg_like_icon_x_var = tk.IntVar(value=int(cfg.get("yanghao_like_icon_x", 0) or 0))
yg_like_icon_y_var = tk.IntVar(value=int(cfg.get("yanghao_like_icon_y", 0) or 0))
yg_fav_icon_x_var = tk.IntVar(value=int(cfg.get("yanghao_fav_icon_x", 0) or 0))
yg_fav_icon_y_var = tk.IntVar(value=int(cfg.get("yanghao_fav_icon_y", 0) or 0))
yg_like_template_path_var = tk.StringVar(
value=str(
cfg.get("yanghao_like_template_path", "assets/like.png")
or "assets/like.png"
)
)
yg_fav_template_path_var = tk.StringVar(
value=str(
cfg.get("yanghao_fav_template_path", "assets/fav.png") or "assets/fav.png"
)
)
yg_like_icon_x_var = tk.IntVar(value=int(cfg.get("yanghao_like_icon_x", 0) or 0))
yg_like_icon_y_var = tk.IntVar(value=int(cfg.get("yanghao_like_icon_y", 0) or 0))
yg_fav_icon_x_var = tk.IntVar(value=int(cfg.get("yanghao_fav_icon_x", 0) or 0))
yg_fav_icon_y_var = tk.IntVar(value=int(cfg.get("yanghao_fav_icon_y", 0) or 0))
yg_after_dwell_direction_var = tk.StringVar(
value=str(cfg.get("yanghao_after_dwell_swipe_direction", "up") or "up")
)
yg_after_dwell_distance_var = tk.IntVar(
value=int(cfg.get("yanghao_after_dwell_swipe_distance_px", 900) or 900)
)
yg_comment_btn_x_var = tk.IntVar(
value=int(cfg.get("yanghao_comment_btn_x", 0) or 0)
)
yg_comment_btn_y_var = tk.IntVar(
value=int(cfg.get("yanghao_comment_btn_y", 0) or 0)
)
yg_comment_input_x_var = tk.IntVar(
value=int(cfg.get("yanghao_comment_input_x", 0) or 0)
)
yg_comment_input_y_var = tk.IntVar(
value=int(cfg.get("yanghao_comment_input_y", 0) or 0)
)
yg_comment_send_x_var = tk.IntVar(
value=int(cfg.get("yanghao_comment_send_x", 0) or 0)
)
yg_comment_send_y_var = tk.IntVar(
value=int(cfg.get("yanghao_comment_send_y", 0) or 0)
)
yg_comment_close_x_var = tk.IntVar(
value=int(cfg.get("yanghao_comment_close_x", 0) or 0)
)
yg_comment_close_y_var = tk.IntVar(
value=int(cfg.get("yanghao_comment_close_y", 0) or 0)
)
fudai_quiet_hours_enabled_var = tk.BooleanVar(
value=bool(cfg.get("fudai_quiet_hours_enabled", True))
)
fudai_quiet_start_hour_var = tk.IntVar(
value=int(cfg.get("fudai_quiet_start_hour", 2) or 2)
)
fudai_quiet_end_hour_var = tk.IntVar(
value=int(cfg.get("fudai_quiet_end_hour", 7) or 7)
)
stage_diag_max_time_var = tk.DoubleVar(
value=float(cfg.get("stage_diag_max_time", 10.0) or 10.0)
)
stage_diag_max_step_time_var = tk.DoubleVar(
value=float(cfg.get("stage_diag_max_step_time", 2.0) or 2.0)
)
stage_diag_verbose_var = tk.BooleanVar(
value=bool(cfg.get("logging", {}).get("stage_diag_verbose", True))
)
enable_ocr_mode1_var = tk.BooleanVar(value=bool(cfg.get("enable_ocr_mode1", False)))
fudai_template_match_enabled_var = tk.BooleanVar(
value=bool(cfg.get("fudai_template_match_enabled", False))
)
fudai_template_match_threshold_var = tk.DoubleVar(
value=float(cfg.get("fudai_template_match_threshold", 0.7) or 0.7)
)
fudai_detail_template_threshold_var = tk.DoubleVar(
value=float(cfg.get("fudai_detail_template_threshold", 0.7) or 0.7)
)
lucky_draw_red_ratio_threshold_var = tk.DoubleVar(
value=float(cfg.get("lucky_draw_red_ratio_threshold", 0.9) or 0.9)
)
coupon_template_match_threshold_var = tk.DoubleVar(
value=float(cfg.get("coupon_template_match_threshold", 0.75) or 0.75)
)
attend_button_red_ratio_threshold_var = tk.DoubleVar(
value=float(cfg.get("attend_button_red_ratio_threshold", 0.25) or 0.25)
)
fansclub_join_red_ratio_threshold_var = tk.DoubleVar(
value=float(cfg.get("fansclub_join_red_ratio_threshold", 0.25) or 0.25)
)
shopping_redpacket_red_ratio_threshold_var = tk.DoubleVar(
value=float(cfg.get("shopping_redpacket_red_ratio_threshold", 0.15) or 0.15)
)
debug_captures_enabled_var = tk.BooleanVar(
value=bool(
cfg.get("debug_captures", {}).get("enabled", False)
if isinstance(cfg.get("debug_captures"), dict)
else False
)
)
debug_captures_auto_cleanup_var = tk.BooleanVar(
value=bool(
cfg.get("debug_captures", {}).get("auto_cleanup", True)
if isinstance(cfg.get("debug_captures"), dict)
else True
)
)
debug_captures_keep_days_var = tk.IntVar(
value=int(
cfg.get("debug_captures", {}).get("keep_days", 7)
if isinstance(cfg.get("debug_captures"), dict)
else 7
)
)
debug_captures_max_files_var = tk.IntVar(
value=int(
cfg.get("debug_captures", {}).get("max_files", 2000)
if isinstance(cfg.get("debug_captures"), dict)
else 2000
)
)
debug_captures_async_save_var = tk.BooleanVar(
value=bool(
cfg.get("debug_captures", {}).get("async_save", True)
if isinstance(cfg.get("debug_captures"), dict)
else True
)
)
debug_captures_log_on_complete_var = tk.BooleanVar(
value=bool(
cfg.get("debug_captures", {}).get("log_on_complete", False)
if isinstance(cfg.get("debug_captures"), dict)
else False
)
)
debug_async_success_var = tk.IntVar(value=0)
debug_async_failure_var = tk.IntVar(value=0)
logging_beautify_var = tk.BooleanVar(
value=bool(cfg.get("logging", {}).get("beautify_output", True))
)
logging_color_var = tk.BooleanVar(
value=bool(cfg.get("logging", {}).get("color_output", True))
)
logging_show_timestamps_var = tk.BooleanVar(
value=bool(cfg.get("logging", {}).get("show_timestamps", True))
)
logging_use_dated_logs_var = tk.BooleanVar(
value=bool(cfg.get("logging", {}).get("use_dated_logs", True))
)
logging_enable_monitor_var = tk.BooleanVar(
value=bool(cfg.get("logging", {}).get("enable_monitor", True))
)
log_unified_enabled_var = tk.BooleanVar(
value=bool(cfg.get("log_unified_enabled", True))
)
log_unified_path_var = tk.StringVar(
value=str(cfg.get("log_unified_path", "logs/unified.log") or "logs/unified.log")
)
logging_keep_days_var = tk.IntVar(
value=int(cfg.get("logging", {}).get("keep_days", 30) or 30)
)
logging_compress_logs_var = tk.BooleanVar(
value=bool(cfg.get("logging", {}).get("compress_logs", True))
)
logging_max_total_size_gb_var = tk.DoubleVar(
value=float(cfg.get("logging", {}).get("max_total_size_gb", 10.0) or 10.0)
)
logging_compress_after_days_var = tk.IntVar(
value=int(cfg.get("logging", {}).get("compress_after_days", 7) or 7)
)
logging_performance_enabled_var = tk.BooleanVar(
value=bool(
cfg.get("logging", {}).get("performance_tracking", {}).get("enabled", True)
)
)
logging_track_functions_var = tk.BooleanVar(
value=bool(
cfg.get("logging", {})
.get("performance_tracking", {})
.get("track_function_calls", True)
)
)
logging_debug_level_var = tk.StringVar(
value=str(cfg.get("logging", {}).get("debug_detail_level", "normal"))
)
logging_error_level_var = tk.StringVar(
value=str(cfg.get("logging", {}).get("error_detail_level", "full"))
)
logging_action_format_var = tk.StringVar(
value=str(cfg.get("logging", {}).get("action_log_format", "concise"))
)
logging_format_mode_var = tk.StringVar(
value=str(cfg.get("logging", {}).get("log_format_mode", "simple"))
)
logging_monitor_warning_mb_var = tk.DoubleVar(
value=float(cfg.get("logging", {}).get("monitor_warning_mb", 500.0) or 500.0)
)
logging_monitor_critical_mb_var = tk.DoubleVar(
value=float(cfg.get("logging", {}).get("monitor_critical_mb", 2000.0) or 2000.0)
)
gui_theme_var = tk.StringVar(
value=str(cfg.get("gui", {}).get("theme", "litera") or "litera")
)
gui_realtime_refresh_interval_ms_var = tk.IntVar(
value=int(
cfg.get("gui", {})
.get("realtime_status", {})
.get("refresh_interval_ms", 1000)
or 1000
)
)
gui_realtime_tail_items_var = tk.IntVar(
value=int(
cfg.get("gui", {}).get("realtime_status", {}).get("tail_items", 50) or 50
)
)
skip_lt_seconds_var = tk.IntVar(
value=int(cfg.get("skip_if_countdown_lt_seconds", 10) or 10)
)
return {
"y_var": y_var,
"enable_back_on_misses_var": enable_back_on_misses_var,
"swipe_down_back_enabled_var": swipe_down_back_enabled_var,
"swipe_down_back_count_var": swipe_down_back_count_var,
"needswitch_var": needswitch_var,
"infinite_loop_var": infinite_loop_var,
"wait_minutes_var": wait_minutes_var,
"min_value_var": min_value_var,
"min_participants_var": min_participants_var,
"max_participants_var": max_participants_var,
"skip_gt_seconds_var": skip_gt_seconds_var,
"reset_after_swipes_enabled_var": reset_after_swipes_enabled_var,
"reset_after_swipes_var": reset_after_swipes_var,
"reset_after_swipes_action_var": reset_after_swipes_action_var,
"streaming_enabled_var": streaming_enabled_var,
"auto_join_var": auto_join_var,
"fansclub_action_var": fansclub_action_var,
"fansclub_click_delay_var": fansclub_click_delay_var,
"fansclub_auto_wait_var": fansclub_auto_wait_var,
"fansclub_manual_wait_var": fansclub_manual_wait_var,
"high_value_fudai_enabled_var": high_value_fudai_enabled_var,
"high_value_fudai_threshold_yuan_var": high_value_fudai_threshold_yuan_var,
"high_value_fudai_join_ahead_seconds_var": high_value_fudai_join_ahead_seconds_var,
"high_value_fudai_max_swipe_back_var": high_value_fudai_max_swipe_back_var,
"high_value_fudai_max_reservations_var": high_value_fudai_max_reservations_var,
"high_value_fudai_after_action_var": high_value_fudai_after_action_var,
"high_value_fudai_poll_before_seconds_var": high_value_fudai_poll_before_seconds_var,
"high_value_room_revisit_enabled_var": high_value_room_revisit_enabled_var,
"high_value_room_revisit_only_current_run_var": high_value_room_revisit_only_current_run_var,
"high_value_room_revisit_min_interval_seconds_var": high_value_room_revisit_min_interval_seconds_var,
"high_value_room_revisit_max_per_run_var": high_value_room_revisit_max_per_run_var,
"high_value_room_revisit_min_prize_value_var": high_value_room_revisit_min_prize_value_var,
"high_value_room_revisit_max_age_days_var": high_value_room_revisit_max_age_days_var,
"reservation_back_verify_enabled_var": reservation_back_verify_enabled_var,
"reservation_back_swipe_delay_var": reservation_back_swipe_delay_var,
"reservation_back_verify_wait_seconds_var": reservation_back_verify_wait_seconds_var,
"fudai_find_max_attempts_var": fudai_find_max_attempts_var,
"fudai_icon_retry_delay_seconds_var": fudai_icon_retry_delay_seconds_var,
"fudai_icon_max_wait_seconds_var": fudai_icon_max_wait_seconds_var,
"fudai_disable_content_recognition_var": fudai_disable_content_recognition_var,
"fudai_disable_task_recognition_var": fudai_disable_task_recognition_var,
"fudai_exit_after_misses_var": fudai_exit_after_misses_var,
"fudai_click_wait_seconds_var": fudai_click_wait_seconds_var,
"switch_room_wait_after_stage_diag_seconds_var": switch_room_wait_after_stage_diag_seconds_var,
"live_room_match_threshold_var": live_room_match_threshold_var,
"swipe_duration_ms_var": swipe_duration_ms_var,
"swipe_up_start_y_var": swipe_up_start_y_var,
"swipe_up_end_y_var": swipe_up_end_y_var,
"yg_enabled_var": yg_enabled_var,
"yg_actions_enabled_var": yg_actions_enabled_var,
"yg_only_var": yg_only_var,
"yg_recommend_duration_var": yg_recommend_duration_var,
"yg_recommend_interval_var": yg_recommend_interval_var,
"yg_like_prob_var": yg_like_prob_var,
"yg_fav_prob_var": yg_fav_prob_var,
"yg_comment_prob_var": yg_comment_prob_var,
"yg_dwell_on_action_min_var": yg_dwell_on_action_min_var,
"yg_dwell_on_action_max_var": yg_dwell_on_action_max_var,
"yg_icon_roi_size_var": yg_icon_roi_size_var,
"yg_icon_match_threshold_var": yg_icon_match_threshold_var,
"yg_step_screenshot_var": yg_step_screenshot_var,
"yg_like_roi_offset_x_var": yg_like_roi_offset_x_var,
"yg_like_roi_offset_y_var": yg_like_roi_offset_y_var,
"yg_fav_roi_offset_x_var": yg_fav_roi_offset_x_var,
"yg_fav_roi_offset_y_var": yg_fav_roi_offset_y_var,
"yg_like_icon_x_var": yg_like_icon_x_var,
"yg_like_icon_y_var": yg_like_icon_y_var,
"yg_fav_icon_x_var": yg_fav_icon_x_var,
"yg_fav_icon_y_var": yg_fav_icon_y_var,
"yg_like_template_path_var": yg_like_template_path_var,
"yg_fav_template_path_var": yg_fav_template_path_var,
"yg_after_dwell_direction_var": yg_after_dwell_direction_var,
"yg_after_dwell_distance_var": yg_after_dwell_distance_var,
"yg_comment_btn_x_var": yg_comment_btn_x_var,
"yg_comment_btn_y_var": yg_comment_btn_y_var,
"yg_comment_input_x_var": yg_comment_input_x_var,
"yg_comment_input_y_var": yg_comment_input_y_var,
"yg_comment_send_x_var": yg_comment_send_x_var,
"yg_comment_send_y_var": yg_comment_send_y_var,
"yg_comment_close_x_var": yg_comment_close_x_var,
"yg_comment_close_y_var": yg_comment_close_y_var,
"fudai_quiet_hours_enabled_var": fudai_quiet_hours_enabled_var,
"fudai_quiet_start_hour_var": fudai_quiet_start_hour_var,
"fudai_quiet_end_hour_var": fudai_quiet_end_hour_var,
"stage_diag_max_time_var": stage_diag_max_time_var,
"stage_diag_max_step_time_var": stage_diag_max_step_time_var,
"stage_diag_verbose_var": stage_diag_verbose_var,
"enable_ocr_mode1_var": enable_ocr_mode1_var,
"fudai_template_match_enabled_var": fudai_template_match_enabled_var,
"fudai_template_match_threshold_var": fudai_template_match_threshold_var,
"fudai_detail_template_threshold_var": fudai_detail_template_threshold_var,
"lucky_draw_red_ratio_threshold_var": lucky_draw_red_ratio_threshold_var,
"coupon_template_match_threshold_var": coupon_template_match_threshold_var,
"attend_button_red_ratio_threshold_var": attend_button_red_ratio_threshold_var,
"fansclub_join_red_ratio_threshold_var": fansclub_join_red_ratio_threshold_var,
"shopping_redpacket_red_ratio_threshold_var": shopping_redpacket_red_ratio_threshold_var,
"debug_captures_enabled_var": debug_captures_enabled_var,
"debug_captures_auto_cleanup_var": debug_captures_auto_cleanup_var,
"debug_captures_keep_days_var": debug_captures_keep_days_var,
"debug_captures_max_files_var": debug_captures_max_files_var,
"debug_captures_async_save_var": debug_captures_async_save_var,
"debug_captures_log_on_complete_var": debug_captures_log_on_complete_var,
"debug_async_success_var": debug_async_success_var,
"debug_async_failure_var": debug_async_failure_var,
"logging_beautify_var": logging_beautify_var,
"logging_color_var": logging_color_var,
"logging_show_timestamps_var": logging_show_timestamps_var,
"logging_use_dated_logs_var": logging_use_dated_logs_var,
"logging_enable_monitor_var": logging_enable_monitor_var,
"log_unified_enabled_var": log_unified_enabled_var,
"log_unified_path_var": log_unified_path_var,
"logging_keep_days_var": logging_keep_days_var,
"logging_compress_logs_var": logging_compress_logs_var,
"logging_max_total_size_gb_var": logging_max_total_size_gb_var,
"logging_compress_after_days_var": logging_compress_after_days_var,
"logging_performance_enabled_var": logging_performance_enabled_var,
"logging_track_functions_var": logging_track_functions_var,
"logging_debug_level_var": logging_debug_level_var,
"logging_error_level_var": logging_error_level_var,
"logging_action_format_var": logging_action_format_var,
"logging_format_mode_var": logging_format_mode_var,
"logging_monitor_warning_mb_var": logging_monitor_warning_mb_var,
"logging_monitor_critical_mb_var": logging_monitor_critical_mb_var,
"gui_theme_var": gui_theme_var,
"gui_realtime_refresh_interval_ms_var": gui_realtime_refresh_interval_ms_var,
"gui_realtime_tail_items_var": gui_realtime_tail_items_var,
"skip_lt_seconds_var": skip_lt_seconds_var,
}