fix: Update configuration and enhance reservation handling

- Adjusted configuration values in `config.json` for minimum prize value, countdown skip time, and high-value fudai thresholds to optimize performance.
- Implemented logic in `douyin_fudai.py` to clear the reservation queue on the first run, ensuring accurate data loading.
- Enhanced logging during reservation handling to provide clearer insights into the process.
- Removed redundant checks and improved code clarity in the reservation logic.
This commit is contained in:
Your Name committed 2025-12-26 11:21:38 +08:00
1 parent 5a55265e9a
commit ea4cb7552f
8 files changed
+55018 -32

No files matched your search

+10 -9
View File
@@ -2,24 +2,24 @@
"needswitch": true,
"infinite_loop_enabled": true,
"wait_minutes": 5,
"min_prize_value_yuan": 200.0,
"min_prize_value_yuan": 100.0,
"min_participants": 0,
"max_participants": 0,
"skip_if_countdown_gt_seconds": 180,
"skip_if_countdown_gt_seconds": 120,
"reset_after_swipes_enabled": true,
"reset_after_swipes": 50,
"auto_join_fansclub": true,
"fansclub_fail_action": "switch",
"high_value_fudai_enabled": true,
"high_value_fudai_threshold_yuan": 500.0,
"high_value_fudai_join_ahead_seconds": 60,
"high_value_fudai_threshold_yuan": 100.0,
"high_value_fudai_join_ahead_seconds": 90,
"high_value_fudai_max_swipe_back": 50,
"high_value_fudai_max_reservations": 3,
"high_value_fudai_after_action": "continue",
"high_value_room_revisit_enabled": true,
"high_value_room_revisit_only_current_run": true,
"reservation_back_verify_enabled": false,
"reservation_back_swipe_delay": 0.6,
"reservation_back_swipe_delay": 0.5,
"reservation_preempt_min_value": 0.0,
"desktop_icon_x": 153,
"desktop_icon_y": 260,
@@ -29,7 +29,7 @@
"yanghao_fallback_enter_live_y": 1200,
"fudai_find_max_attempts": 99999,
"fudai_icon_retry_delay_seconds": 0.4,
"fudai_icon_max_wait_seconds": 4.0,
"fudai_icon_max_wait_seconds": 6.0,
"fudai_click_wait_seconds": 1.7,
"yanghao_recommend_duration_seconds": 206,
"yanghao_recommend_interval_seconds": 570,
@@ -98,8 +98,9 @@
"auto_cleanup": true
},
"fudai_detail_template_threshold": 0.54,
"switch_room_wait_after_stage_diag_seconds": 7.0,
"coupon_template_match_threshold": 0.75,
"switch_room_wait_after_stage_diag_seconds": 10.0,
"coupon_template_match_threshold": 0.4,
"attend_button_red_ratio_threshold": 0.25,
"fansclub_join_red_ratio_threshold": 0.25
"fansclub_join_red_ratio_threshold": 0.25,
"reservation_test_mode": false
}