修复福袋详情OCR v2与调试日志

This commit is contained in:
Your Name committed 2026-06-03 01:22:13 +08:00
1 parent 2c6f024a24
commit 1d37d57c90
119 files changed
+5582 -767

No files matched your search

+39
View File
@@ -73,6 +73,27 @@
</div>
<div class="sectionTitle">OCR 模式</div>
<div class="row">
<label class="label">福袋详情页 UI 版本</label>
<select id="fudai_detail_ui_mode" class="input" data-key="fudai_detail_ui_mode" data-type="str">
<option value="auto">auto</option><option value="legacy">legacy</option><option value="v2_0">v2_0</option>
</select>
<div class="hint">auto 默认优先使用当前 2.0 坐标,必要时保留旧版回退</div>
</div>
<div class="row grid3">
<label class="check"><input id="fudai_detail_ocr_content_enabled" type="checkbox" data-key="fudai_detail_ocr_content_enabled" data-type="bool" /> <span>内容 OCR</span></label>
<label class="check"><input id="fudai_detail_ocr_value_enabled" type="checkbox" data-key="fudai_detail_ocr_value_enabled" data-type="bool" /> <span>价值 OCR</span></label>
<label class="check"><input id="fudai_detail_ocr_countdown_enabled" type="checkbox" data-key="fudai_detail_ocr_countdown_enabled" data-type="bool" /> <span>倒计时 OCR</span></label>
</div>
<div class="row grid3">
<label class="check"><input id="fudai_detail_ocr_task_enabled" type="checkbox" data-key="fudai_detail_ocr_task_enabled" data-type="bool" /> <span>任务 OCR</span></label>
<label class="check"><input id="fudai_detail_ocr_task_count_enabled" type="checkbox" data-key="fudai_detail_ocr_task_count_enabled" data-type="bool" /> <span>任务数量 OCR</span></label>
<label class="check"><input id="fudai_detail_ocr_button_enabled" type="checkbox" data-key="fudai_detail_ocr_button_enabled" data-type="bool" /> <span>按钮文案 OCR</span></label>
</div>
<div class="row grid2">
<label class="check"><input id="fudai_detail_ocr_participants_enabled" type="checkbox" data-key="fudai_detail_ocr_participants_enabled" data-type="bool" /> <span>人数 OCR(默认关闭)</span></label>
<label class="check"><input id="fudai_detail_ocr_live_title_enabled" type="checkbox" data-key="fudai_detail_ocr_live_title_enabled" data-type="bool" /> <span>直播间标题 OCR(默认开启)</span></label>
</div>
<div class="row">
<label class="label">启用 OCR 模式1(备用)</label>
<label class="check">
@@ -125,6 +146,24 @@
</div>
<div class="sectionTitle">像素检测</div>
<div class="row grid4">
<label class="check"><input id="pixel_detect_fudai_icon_enabled" type="checkbox" data-key="pixel_detect_fudai_icon_enabled" data-type="bool" /> <span>福袋icon像素</span></label>
<label class="check"><input id="pixel_detect_coupon_popup_enabled" type="checkbox" data-key="pixel_detect_coupon_popup_enabled" data-type="bool" /> <span>优惠券像素</span></label>
<label class="check"><input id="pixel_detect_shopping_redpacket_enabled" type="checkbox" data-key="pixel_detect_shopping_redpacket_enabled" data-type="bool" /> <span>购物红包像素(默认关)</span></label>
<label class="check"><input id="pixel_detect_lottery_result_enabled" type="checkbox" data-key="pixel_detect_lottery_result_enabled" data-type="bool" /> <span>开奖结果像素</span></label>
</div>
<div class="row grid4">
<label class="check"><input id="pixel_detect_attend_button_enabled" type="checkbox" data-key="pixel_detect_attend_button_enabled" data-type="bool" /> <span>参与按钮像素</span></label>
<label class="check"><input id="pixel_detect_fansclub_join_enabled" type="checkbox" data-key="pixel_detect_fansclub_join_enabled" data-type="bool" /> <span>粉丝团像素</span></label>
<label class="check"><input id="pixel_detect_fudai_detail_enabled" type="checkbox" data-key="pixel_detect_fudai_detail_enabled" data-type="bool" /> <span>详情页像素</span></label>
<label class="check"><input id="pixel_detect_live_room_enabled" type="checkbox" data-key="pixel_detect_live_room_enabled" data-type="bool" /> <span>直播间像素</span></label>
</div>
<div class="row grid4">
<label class="check"><input id="ocr_lottery_result_enabled" type="checkbox" data-key="ocr_lottery_result_enabled" data-type="bool" /> <span>开奖结果OCR</span></label>
<label class="check"><input id="ocr_coupon_popup_enabled" type="checkbox" data-key="ocr_coupon_popup_enabled" data-type="bool" /> <span>优惠券OCR</span></label>
<label class="check"><input id="ocr_shopping_redpacket_enabled" type="checkbox" data-key="ocr_shopping_redpacket_enabled" data-type="bool" /> <span>购物红包OCR(默认关)</span></label>
<label class="check"><input id="ocr_stage_page_enabled" type="checkbox" data-key="ocr_stage_page_enabled" data-type="bool" /> <span>页面OCR</span></label>
</div>
<div class="row">
<label class="label">抽奖结果红色比例阈值</label>
<input id="lucky_draw_red_ratio_threshold" class="input" data-key="lucky_draw_red_ratio_threshold" data-type="float" type="number" min="0" max="1" step="0.01" value="0.8" />
+22
View File
@@ -132,6 +132,27 @@ const DEFAULTS = {
fudai_icon_max_wait_seconds: 5.0,
// 是否禁用福袋内容OCR识别(仅前端默认,实际值以 config.json 为准)
fudai_disable_content_recognition: false,
fudai_detail_ui_mode: "auto",
fudai_detail_ocr_content_enabled: true,
fudai_detail_ocr_value_enabled: true,
fudai_detail_ocr_countdown_enabled: true,
fudai_detail_ocr_task_enabled: true,
fudai_detail_ocr_task_count_enabled: true,
fudai_detail_ocr_button_enabled: true,
fudai_detail_ocr_participants_enabled: false,
fudai_detail_ocr_live_title_enabled: true,
pixel_detect_fudai_icon_enabled: true,
pixel_detect_coupon_popup_enabled: true,
pixel_detect_shopping_redpacket_enabled: false,
pixel_detect_lottery_result_enabled: true,
pixel_detect_attend_button_enabled: true,
pixel_detect_fansclub_join_enabled: true,
pixel_detect_fudai_detail_enabled: true,
pixel_detect_live_room_enabled: true,
ocr_lottery_result_enabled: true,
ocr_coupon_popup_enabled: true,
ocr_shopping_redpacket_enabled: false,
ocr_stage_page_enabled: true,
live_room_match_threshold: 0.8,
reservation_back_swipe_delay: 0.6,
@@ -144,6 +165,7 @@ const DEFAULTS = {
infinite_loop_enabled: false,
skip_if_countdown_gt_seconds: 900,
reset_after_swipes_action: "swipe",
reenter_live_entry_mode: "follow_list",
enable_back_on_misses: true,
enable_streaming_screenshot: true,
swipe_duration_ms: 600,
+1
View File
@@ -75,6 +75,7 @@ async function startRun() {
fansclub_fail_action: cfgPart.fansclub_fail_action,
skip_if_countdown_gt_seconds: cfgPart.skip_if_countdown_gt_seconds,
reset_after_swipes_action: cfgPart.reset_after_swipes_action,
reenter_live_entry_mode: cfgPart.reenter_live_entry_mode,
enable_back_on_misses: cfgPart.enable_back_on_misses,
swipe_down_back_enabled: cfgPart.swipe_down_back_enabled,
swipe_down_back_count: cfgPart.swipe_down_back_count,