848 lines
49 KiB
HTML
848 lines
49 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>抖音挂机 - Web GUI</title>
|
|
<link rel="stylesheet" href="styles.css" />
|
|
</head>
|
|
<body>
|
|
<div class="app">
|
|
<header class="header">
|
|
<div>
|
|
<div class="title">抖音挂机控制�?/div>
|
|
<div class="subtitle">配置与运行(纯坐标点击)</div>
|
|
</div>
|
|
<div class="header-actions">
|
|
<button id="btnStart" class="btn btnPrimary">
|
|
<span class="btnIcon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v16l13-8z"/></svg>
|
|
</span>
|
|
开始运�? </button>
|
|
<button id="btnRefresh" class="btn">
|
|
<span class="btnIcon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-2.64-6.36"/><path d="M21 3v6h-6"/></svg>
|
|
</span>
|
|
刷新设备
|
|
</button>
|
|
<button id="btnScreenshot" class="btn">
|
|
<span class="btnIcon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
|
|
</span>
|
|
截图
|
|
</button>
|
|
<button id="btnLoad" class="btn">
|
|
<span class="btnIcon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="M7 10l5 5 5-5"/><path d="M12 15V3"/></svg>
|
|
</span>
|
|
加载配置
|
|
</button>
|
|
<button id="btnSave" class="btn btnPrimary">
|
|
<span class="btnIcon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h11l5 5v9a2 2 0 0 1-2 2z"/><path d="M17 21v-8H7v8"/><path d="M7 3v5h8"/></svg>
|
|
</span>
|
|
保存配置
|
|
</button>
|
|
<button id="btnStop" class="btn btnDanger">
|
|
<span class="btnIcon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="6" width="12" height="12" rx="2"/></svg>
|
|
</span>
|
|
停止
|
|
</button>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="grid">
|
|
<section class="card cardScroll cardConfig">
|
|
<div class="cardTitle">
|
|
<span class="sectionIcon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 .31 1.7 1.7 0 0 0-.82 1.46V21a2 2 0 0 1-4 0v-.09a1.7 1.7 0 0 0-.82-1.46 1.7 1.7 0 0 0-1-.31 1.7 1.7 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-.31-1 1.7 1.7 0 0 0-1.46-.82H2a2 2 0 0 1 0-4h.09a1.7 1.7 0 0 0 1.46-.82 1.7 1.7 0 0 0 .31-1 1.7 1.7 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1-.31 1.7 1.7 0 0 0 .82-1.46V2a2 2 0 0 1 4 0v.09a1.7 1.7 0 0 0 .82 1.46 1.7 1.7 0 0 0 1 .31 1.7 1.7 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9a1.7 1.7 0 0 0 .31 1 1.7 1.7 0 0 0 1.46.82H22a2 2 0 0 1 0 4h-.09a1.7 1.7 0 0 0-1.46.82 1.7 1.7 0 0 0-.31 1z"/></svg>
|
|
</span>
|
|
配置
|
|
</div>
|
|
|
|
<div class="configLayout">
|
|
<nav class="sideNav" role="tablist" aria-label="配置分类">
|
|
<button class="tabBtn active" type="button" data-target="device" role="tab" aria-selected="true">
|
|
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="2" width="10" height="20" rx="2"/><path d="M11 19h2"/></svg></span>
|
|
<span class="tabText">设备</span>
|
|
</button>
|
|
<button class="tabBtn" type="button" data-target="run" role="tab" aria-selected="false">
|
|
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M12 4h9"/><path d="M4 9h16"/><path d="M4 15h16"/><circle cx="8" cy="9" r="2"/><circle cx="8" cy="15" r="2"/></svg></span>
|
|
<span class="tabText">运行</span>
|
|
</button>
|
|
<button class="tabBtn" type="button" data-target="filter" role="tab" aria-selected="false">
|
|
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 3H2l8 9v7l4 2v-9z"/></svg></span>
|
|
<span class="tabText">筛�?/span>
|
|
</button>
|
|
<button class="tabBtn" type="button" data-target="stats" role="tab" aria-selected="false">
|
|
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19V5"/><path d="M20 19V5"/><path d="M8 17v-6"/><path d="M12 17V9"/><path d="M16 17V7"/></svg></span>
|
|
<span class="tabText">统计</span>
|
|
</button>
|
|
<button class="tabBtn" type="button" data-target="yanghao" role="tab" aria-selected="false">
|
|
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.8 4.6c-1.4-1.4-3.7-1.4-5.1 0L12 8.3 8.3 4.6c-1.4-1.4-3.7-1.4-5.1 0s-1.4 3.7 0 5.1L12 18.5l8.8-8.8c1.4-1.4 1.4-3.7 0-5.1z"/></svg></span>
|
|
<span class="tabText">养号</span>
|
|
</button>
|
|
<button class="tabBtn" type="button" data-target="keywords" role="tab" aria-selected="false">
|
|
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0z"/><path d="M21 21l-6-6"/></svg></span>
|
|
<span class="tabText">关键�?/span>
|
|
</button>
|
|
<button class="tabBtn" type="button" data-target="debug" role="tab" aria-selected="false">
|
|
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg></span>
|
|
<span class="tabText">调试</span>
|
|
</button>
|
|
</nav>
|
|
|
|
<div class="panels">
|
|
<div class="panel active" data-panel="device" role="tabpanel">
|
|
<div class="sectionTitle">
|
|
<span class="sectionIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="2" width="10" height="20" rx="2"/><path d="M11 19h2"/></svg></span>
|
|
设备
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">设备</label>
|
|
<select id="device" class="input"></select>
|
|
<div class="hint" id="adbStatus"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel" data-panel="run" role="tabpanel" hidden>
|
|
<div class="sectionTitle">
|
|
<span class="sectionIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M12 4h9"/><path d="M4 9h16"/><path d="M4 15h16"/><circle cx="8" cy="9" r="2"/><circle cx="8" cy="15" r="2"/></svg></span>
|
|
运行参数
|
|
</div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">Y偏移</label>
|
|
<input id="y_pianyi" class="input" type="number" min="-200" max="200" step="1" value="0" />
|
|
</div>
|
|
<div>
|
|
<label class="label">倒计时阈�?分钟)</label>
|
|
<input id="wait_minutes" class="input" type="number" min="1" max="60" step="1" value="5" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">允许切换直播间(needswitch�?/label>
|
|
<label class="check">
|
|
<input id="needswitch" type="checkbox" checked />
|
|
<span>启用</span>
|
|
</label>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">切换 N 次后回到第一个(开关)</label>
|
|
<label class="check">
|
|
<input id="reset_after_swipes_enabled" type="checkbox" data-key="reset_after_swipes_enabled" data-type="bool" />
|
|
<span>启用</span>
|
|
</label>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">切换 N 次后回到第一个(次数�?/label>
|
|
<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">
|
|
<label class="label">下滑 X 次后按返回并重新进入直播间(开关)</label>
|
|
<label class="check">
|
|
<input id="swipe_down_back_enabled" type="checkbox" data-key="swipe_down_back_enabled" data-type="bool" />
|
|
<span>启用</span>
|
|
</label>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">下滑 X 次后按返回并重新进入直播间(次数)</label>
|
|
<input id="swipe_down_back_count" class="input" data-key="swipe_down_back_count" data-type="int" type="number" min="1" step="1" />
|
|
<div class="hint">触发后会按返回键返回推荐页并重新进入直播间</div>
|
|
</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">禁用福袋内容OCR识别</label>
|
|
<label class="check">
|
|
<input id="fudai_disable_content_recognition" type="checkbox" data-key="fudai_disable_content_recognition" data-type="bool" />
|
|
<span>禁用(暂不按内容过滤)</span>
|
|
</label>
|
|
<div class="hint">勾选后跳过福袋内容OCR识别,避免内容过滤误判</div>
|
|
</div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">找福袋重试间�?�?</label>
|
|
<input id="fudai_icon_retry_delay_seconds" class="input" data-key="fudai_icon_retry_delay_seconds" data-type="float" type="number" min="0.1" max="3.0" step="0.1" />
|
|
</div>
|
|
<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" max="30" step="0.5" />
|
|
<div class="hint">识别到福袋一�?4�? 秒,可按设备/网络情况微调</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">直播间检测阈�?/label>
|
|
<input id="live_room_match_threshold" class="input" data-key="live_room_match_threshold" data-type="float" type="number" min="0.0" max="1.0" step="0.01" />
|
|
<div class="hint">模板匹配阈值(0.0~1.0),默认0.8,值越高越严格,建议≥0.8</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel" data-panel="filter" role="tabpanel" hidden>
|
|
<div class="sectionTitle">
|
|
<span class="sectionIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 3H2l8 9v7l4 2v-9z"/></svg></span>
|
|
筛选设�? </div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">最低价�?�?</label>
|
|
<input id="min_prize_value_yuan" class="input" data-key="min_prize_value_yuan" data-type="float" type="number" min="0" step="0.1" />
|
|
</div>
|
|
<div>
|
|
<label class="label">倒计时小�?�?时不参与(高价值可预约�?/label>
|
|
<input id="skip_if_countdown_lt_seconds" class="input" data-key="skip_if_countdown_lt_seconds" data-type="int" type="number" min="0" max="120" step="1" />
|
|
</div>
|
|
</div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">参与人数最�?/label>
|
|
<input id="min_participants" class="input" data-key="min_participants" data-type="int" type="number" min="0" step="1" />
|
|
</div>
|
|
<div>
|
|
<label class="label">参与人数最�?/label>
|
|
<input id="max_participants" class="input" data-key="max_participants" data-type="int" type="number" min="0" step="1" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">自动加入粉丝团(谨慎�?/label>
|
|
<label class="check">
|
|
<input id="auto_join_fansclub" type="checkbox" data-key="auto_join_fansclub" data-type="bool" />
|
|
<span>启用</span>
|
|
</label>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">粉丝团失败策�?/label>
|
|
<select id="fansclub_fail_action" class="input" data-key="fansclub_fail_action" data-type="str">
|
|
<option value="stay">stay</option>
|
|
<option value="switch">switch</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="sectionTitle">高价值福袋预约参�?/div>
|
|
<div class="row">
|
|
<label class="label">启用预约(价值≥阈值)</label>
|
|
<label class="check">
|
|
<input id="high_value_fudai_enabled" type="checkbox" data-key="high_value_fudai_enabled" data-type="bool" />
|
|
<span>启用</span>
|
|
</label>
|
|
</div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">价值阈�?�?</label>
|
|
<input id="high_value_fudai_threshold_yuan" class="input" data-key="high_value_fudai_threshold_yuan" data-type="float" type="number" min="0" step="1" />
|
|
</div>
|
|
<div>
|
|
<label class="label">提前参与(�?</label>
|
|
<input id="high_value_fudai_join_ahead_seconds" class="input" data-key="high_value_fudai_join_ahead_seconds" data-type="int" type="number" min="5" max="900" step="1" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">最多回退直播间次�?/label>
|
|
<input id="high_value_fudai_max_swipe_back" class="input" data-key="high_value_fudai_max_swipe_back" data-type="int" type="number" min="0" max="300" step="1" />
|
|
<div class="hint">防止预约期间切换太远导致回退过慢/异常�? 表示不限�?/div>
|
|
</div>
|
|
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">最多记录数�?/label>
|
|
<input id="high_value_fudai_max_reservations" class="input" data-key="high_value_fudai_max_reservations" data-type="int" type="number" min="1" max="50" step="1" />
|
|
<div class="hint">超过后丢弃最晚开奖的预约</div>
|
|
</div>
|
|
<div>
|
|
<label class="label">完成后策�?/label>
|
|
<select id="high_value_fudai_after_action" class="input" data-key="high_value_fudai_after_action" data-type="str">
|
|
<option value="continue">continue</option>
|
|
<option value="stay">stay</option>
|
|
</select>
|
|
<div class="hint">stay:停留当前直播间;continue:继续抢福袋</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">启用高价值直播间定时回访</label>
|
|
<label class="check">
|
|
<input id="high_value_room_revisit_enabled" type="checkbox" data-key="high_value_room_revisit_enabled" data-type="bool" />
|
|
<span>启用</span>
|
|
</label>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">仅回访本次运行记录的直播�?/label>
|
|
<label class="check">
|
|
<input id="high_value_room_revisit_only_current_run" type="checkbox" data-key="high_value_room_revisit_only_current_run" data-type="bool" />
|
|
<span>仅本次运�?/span>
|
|
</label>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">预约回退后校验(回退校验开关)</label>
|
|
<label class="check">
|
|
<input id="reservation_back_verify_enabled" type="checkbox" data-key="reservation_back_verify_enabled" data-type="bool" />
|
|
<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">
|
|
<label class="label">启用定时禁抢</label>
|
|
<label class="check">
|
|
<input id="fudai_quiet_hours_enabled" type="checkbox" data-key="fudai_quiet_hours_enabled" data-type="bool" />
|
|
<span>启用</span>
|
|
</label>
|
|
</div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">开始小�?/label>
|
|
<input id="fudai_quiet_start_hour" class="input" data-key="fudai_quiet_start_hour" data-type="int" type="number" min="0" max="23" step="1" />
|
|
</div>
|
|
<div>
|
|
<label class="label">结束小时</label>
|
|
<input id="fudai_quiet_end_hour" class="input" data-key="fudai_quiet_end_hour" data-type="int" type="number" min="0" max="23" step="1" />
|
|
<div class="hint">区间�?[开�? 结束),例�?2-7 表示 2:00~6:59</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel" data-panel="stats" role="tabpanel" hidden>
|
|
<div class="sectionTitle">
|
|
<span class="sectionIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19V5"/><path d="M20 19V5"/><path d="M8 17v-6"/><path d="M12 17V9"/><path d="M16 17V7"/></svg></span>
|
|
运行统计
|
|
</div>
|
|
|
|
<div class="sectionTitle">福袋中奖内容(最�?0条)</div>
|
|
<div class="table" id="tableWins"></div>
|
|
|
|
<div class="statsGrid">
|
|
<div class="stat">
|
|
<div class="statLabel">运行状�?/div>
|
|
<div id="statRunning" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">PID</div>
|
|
<div id="statPid" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">运行时长</div>
|
|
<div id="statUptime" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">日志行数</div>
|
|
<div id="statLogLen" class="statValue">-</div>
|
|
<div class="statHint" id="statLogCap">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">最近日志时�?/div>
|
|
<div id="statLastLog" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">退出码</div>
|
|
<div id="statExitCode" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">TraceId(请求追踪)</div>
|
|
<div id="statTraceId" class="statValue" style="font-family: monospace; font-size: 0.9em;">-</div>
|
|
<div class="statHint" id="statTraceIdHint">-</div>
|
|
</div>
|
|
|
|
<div class="stat">
|
|
<div class="statLabel">福袋:识别次�?/div>
|
|
<div id="statFudaiSeen" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">福袋:打开详情</div>
|
|
<div id="statFudaiOpen" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">福袋:参与成�?已参�?/div>
|
|
<div id="statFudaiAttendOk" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">福袋:参与失�?/div>
|
|
<div id="statFudaiAttendFail" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">福袋:未中奖次数</div>
|
|
<div id="statFudaiNoWin" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">福袋:中奖次�?/div>
|
|
<div id="statFudaiWin" class="statValue">-</div>
|
|
</div>
|
|
|
|
<div class="stat">
|
|
<div class="statLabel">福袋:跳过(价值低�?/div>
|
|
<div id="statSkipValueLow" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">福袋:跳过(人数�?高)</div>
|
|
<div id="statSkipParticipants" class="statValue">-</div>
|
|
<div class="statHint" id="statSkipParticipantsHint">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">福袋:跳过(内容不理想)</div>
|
|
<div id="statSkipContent" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">福袋:跳过(倒计时短/长)</div>
|
|
<div id="statSkipCountdown" class="statValue">-</div>
|
|
<div class="statHint" id="statSkipCountdownHint">-</div>
|
|
</div>
|
|
|
|
<div class="stat">
|
|
<div class="statLabel">粉丝团门�?/div>
|
|
<div id="statFansclub" class="statValue">-</div>
|
|
<div class="statHint" id="statFansclubHint">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">切换直播间次�?/div>
|
|
<div id="statSwitchRoom" class="statValue">-</div>
|
|
<div class="statHint" id="statSwitchRoomHint">-</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sectionTitle">最近识别到的福�?/div>
|
|
<div class="statsGrid">
|
|
<div class="stat">
|
|
<div class="statLabel">内容</div>
|
|
<div id="statLastContent" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">倒计�?/div>
|
|
<div id="statLastCountdown" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">参与人数 / 份数</div>
|
|
<div id="statLastPeople" class="statValue">-</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="statLabel">奖品价�?�?</div>
|
|
<div id="statLastValue" class="statValue">-</div>
|
|
<div class="statHint" id="statLastUpdated">-</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sectionTitle">趋势(最�?小时�?分钟粒度�?/div>
|
|
<div class="chartBlock">
|
|
<div class="chartTitle">福袋关键动作趋势</div>
|
|
<div id="chartTimeline" class="chart"></div>
|
|
<div class="hint">展示:打开详情 / 参与成功 / 参与失败 / 中奖 / 未中�?/ 跳过 / 切换直播�?/div>
|
|
</div>
|
|
|
|
<div class="sectionTitle">分布</div>
|
|
<div class="chartsGrid">
|
|
<div class="chartBlock">
|
|
<div class="chartTitle">跳过原因</div>
|
|
<div id="chartSkipReason" class="chart"></div>
|
|
</div>
|
|
<div class="chartBlock">
|
|
<div class="chartTitle">切换直播间原�?/div>
|
|
<div id="chartSwitchReason" class="chart"></div>
|
|
</div>
|
|
<div class="chartBlock">
|
|
<div class="chartTitle">奖品价值区�?�?</div>
|
|
<div id="chartValueBuckets" class="chart"></div>
|
|
</div>
|
|
<div class="chartBlock">
|
|
<div class="chartTitle">参与人数区间</div>
|
|
<div id="chartParticipantsBuckets" class="chart"></div>
|
|
</div>
|
|
<div class="chartBlock">
|
|
<div class="chartTitle">倒计时区�?�?</div>
|
|
<div id="chartCountdownBuckets" class="chart"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sectionTitle">Top 福袋内容</div>
|
|
<div class="table" id="tableTopContent"></div>
|
|
</div>
|
|
|
|
<div class="panel" data-panel="yanghao" role="tabpanel" hidden>
|
|
<div class="sectionTitle">
|
|
<span class="sectionIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.8 4.6c-1.4-1.4-3.7-1.4-5.1 0L12 8.3 8.3 4.6c-1.4-1.4-3.7-1.4-5.1 0s-1.4 3.7 0 5.1L12 18.5l8.8-8.8c1.4-1.4 1.4-3.7 0-5.1z"/></svg></span>
|
|
推荐页养号(爱心/收藏/评论�? </div>
|
|
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">养号总开关(关闭=不跑推荐页养号)</label>
|
|
<label class="check">
|
|
<input id="yanghao_enabled" type="checkbox" data-key="yanghao_enabled" data-type="bool" checked />
|
|
<span>启用</span>
|
|
</label>
|
|
</div>
|
|
<div>
|
|
<label class="label">养号动作开关(爱心/收藏/评论�?/label>
|
|
<label class="check">
|
|
<input id="yanghao_enable_actions" type="checkbox" data-key="yanghao_enable_actions" data-type="bool" checked />
|
|
<span>启用</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">逐步截图(调试用�?/label>
|
|
<label class="check">
|
|
<input id="yanghao_step_screenshot" type="checkbox" data-key="yanghao_step_screenshot" data-type="bool" />
|
|
<span>启用</span>
|
|
</label>
|
|
</div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">养号时长(�?</label>
|
|
<input id="yanghao_recommend_duration_seconds" class="input" data-key="yanghao_recommend_duration_seconds" data-type="int" type="number" min="1" max="3600" step="5" value="60" />
|
|
</div>
|
|
<div>
|
|
<label class="label">养号间隔(�?</label>
|
|
<input id="yanghao_recommend_interval_seconds" class="input" data-key="yanghao_recommend_interval_seconds" data-type="int" type="number" min="0" max="3600" step="10" value="0" />
|
|
<div class="hint">0 表示每次触发都执�?/div>
|
|
</div>
|
|
</div>
|
|
<div class="row grid3">
|
|
<div>
|
|
<label class="label">爱心概率</label>
|
|
<input id="yanghao_like_prob" class="input" data-key="yanghao_like_prob" data-type="float" type="number" min="0" max="1" step="0.01" />
|
|
</div>
|
|
<div>
|
|
<label class="label">收藏概率</label>
|
|
<input id="yanghao_fav_prob" class="input" data-key="yanghao_fav_prob" data-type="float" type="number" min="0" max="1" step="0.01" />
|
|
</div>
|
|
<div>
|
|
<label class="label">评论概率</label>
|
|
<input id="yanghao_comment_prob" class="input" data-key="yanghao_comment_prob" data-type="float" type="number" min="0" max="1" step="0.01" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">检测动作后停留(秒)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_dwell_on_action_min_seconds" class="input" data-key="yanghao_dwell_on_action_min_seconds" data-type="float" type="number" min="0" max="120" step="1" value="5" />
|
|
<span>~</span>
|
|
<input id="yanghao_dwell_on_action_max_seconds" class="input" data-key="yanghao_dwell_on_action_max_seconds" data-type="float" type="number" min="0" max="120" step="1" value="30" />
|
|
</div>
|
|
<div class="hint">随机范围</div>
|
|
</div>
|
|
<div>
|
|
<label class="label">图标 ROI 大小(px)</label>
|
|
<input id="yanghao_icon_roi_size" class="input" data-key="yanghao_icon_roi_size" data-type="int" type="number" min="80" max="600" step="10" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">爱心图标坐标(x,y)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_like_icon_x" class="input" data-key="yanghao_like_icon_x" data-type="int" type="number" />
|
|
<input id="yanghao_like_icon_y" class="input" data-key="yanghao_like_icon_y" data-type="int" type="number" />
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<label class="label">收藏图标坐标(x,y)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_fav_icon_x" class="input" data-key="yanghao_fav_icon_x" data-type="int" type="number" />
|
|
<input id="yanghao_fav_icon_y" class="input" data-key="yanghao_fav_icon_y" data-type="int" type="number" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">爱心 ROI 偏移(x,y)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_like_roi_offset_x" class="input" data-key="yanghao_like_roi_offset_x" data-type="int" type="number" />
|
|
<input id="yanghao_like_roi_offset_y" class="input" data-key="yanghao_like_roi_offset_y" data-type="int" type="number" />
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<label class="label">收藏 ROI 偏移(x,y)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_fav_roi_offset_x" class="input" data-key="yanghao_fav_roi_offset_x" data-type="int" type="number" />
|
|
<input id="yanghao_fav_roi_offset_y" class="input" data-key="yanghao_fav_roi_offset_y" data-type="int" type="number" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">爱心模板路径</label>
|
|
<input id="yanghao_like_template_path" class="input" data-key="yanghao_like_template_path" data-type="str" type="text" />
|
|
</div>
|
|
<div>
|
|
<label class="label">收藏模板路径</label>
|
|
<input id="yanghao_fav_template_path" class="input" data-key="yanghao_fav_template_path" data-type="str" type="text" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">爱心图标坐标(x,y)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_like_icon_x" class="input" data-key="yanghao_like_icon_x" data-type="int" type="number" />
|
|
<input id="yanghao_like_icon_y" class="input" data-key="yanghao_like_icon_y" data-type="int" type="number" />
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<label class="label">收藏图标坐标(x,y)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_fav_icon_x" class="input" data-key="yanghao_fav_icon_x" data-type="int" type="number" />
|
|
<input id="yanghao_fav_icon_y" class="input" data-key="yanghao_fav_icon_y" data-type="int" type="number" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">评论按钮坐标(x,y)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_comment_btn_x" class="input" data-key="yanghao_comment_btn_x" data-type="int" type="number" />
|
|
<input id="yanghao_comment_btn_y" class="input" data-key="yanghao_comment_btn_y" data-type="int" type="number" />
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<label class="label">评论输入框坐�?x,y)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_comment_input_x" class="input" data-key="yanghao_comment_input_x" data-type="int" type="number" />
|
|
<input id="yanghao_comment_input_y" class="input" data-key="yanghao_comment_input_y" data-type="int" type="number" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">评论发送坐�?x,y)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_comment_send_x" class="input" data-key="yanghao_comment_send_x" data-type="int" type="number" />
|
|
<input id="yanghao_comment_send_y" class="input" data-key="yanghao_comment_send_y" data-type="int" type="number" />
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<label class="label">评论关闭坐标(x,y)</label>
|
|
<div class="inline2">
|
|
<input id="yanghao_comment_close_x" class="input" data-key="yanghao_comment_close_x" data-type="int" type="number" />
|
|
<input id="yanghao_comment_close_y" class="input" data-key="yanghao_comment_close_y" data-type="int" type="number" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">停留后滑动方�?/label>
|
|
<select id="yanghao_after_dwell_swipe_direction" class="input" data-key="yanghao_after_dwell_swipe_direction" data-type="str">
|
|
<option value="up">up</option>
|
|
<option value="down">down</option>
|
|
</select>
|
|
</div>
|
|
<div>
|
|
<label class="label">停留后滑动距�?px)</label>
|
|
<input id="yanghao_after_dwell_swipe_distance_px" class="input" data-key="yanghao_after_dwell_swipe_distance_px" data-type="int" type="number" min="100" max="2000" step="10" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<label class="label">评论文案库(每行一个)</label>
|
|
<textarea id="yanghao_comment_texts" class="input textarea" data-key="yanghao_comment_texts" data-type="list_lines" rows="6"></textarea>
|
|
</div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">爱心关键词(每行一个)</label>
|
|
<textarea id="yanghao_like_keywords" class="input textarea" data-key="yanghao_like_keywords" data-type="list_lines" rows="4"></textarea>
|
|
</div>
|
|
<div>
|
|
<label class="label">收藏关键词(每行一个)</label>
|
|
<textarea id="yanghao_fav_keywords" class="input textarea" data-key="yanghao_fav_keywords" data-type="list_lines" rows="4"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel" data-panel="keywords" role="tabpanel" hidden>
|
|
<div class="sectionTitle">
|
|
<span class="sectionIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0z"/><path d="M21 21l-6-6"/></svg></span>
|
|
关键词(每行一个)
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">想要 contains_want</label>
|
|
<textarea id="contains_want" class="input textarea" data-key="contains_want" data-type="list_lines" rows="5"></textarea>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">不想�?contains_not_want</label>
|
|
<textarea id="contains_not_want" class="input textarea" data-key="contains_not_want" data-type="list_lines" rows="5"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel" data-panel="debug" role="tabpanel" hidden>
|
|
<div class="sectionTitle">
|
|
<span class="sectionIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg></span>
|
|
调试参数
|
|
</div>
|
|
|
|
<div class="sectionTitle">调试图像</div>
|
|
<div class="row">
|
|
<label class="label">保存调试图像(OCR / 像素 / 模板等)</label>
|
|
<label class="check">
|
|
<input id="debug_captures_enabled" type="checkbox" data-key="debug_captures.enabled" data-type="bool" />
|
|
<span>启用</span>
|
|
</label>
|
|
<div class="hint">关闭后不再保存调试截图,可显著减少磁盘占用和略微提升速度</div>
|
|
</div>
|
|
|
|
<div class="sectionTitle">调试图像清理</div>
|
|
<div class="row">
|
|
<label class="label">启用自动清理调试图像</label>
|
|
<label class="check">
|
|
<input id="debug_captures_auto_cleanup" type="checkbox" data-key="debug_captures.auto_cleanup" data-type="bool" checked />
|
|
<span>启用</span>
|
|
</label>
|
|
<div class="hint">每天第一次保存调试图像时自动清理旧目�?/div>
|
|
</div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">保留天数</label>
|
|
<input id="debug_captures_keep_days" class="input" data-key="debug_captures.keep_days" data-type="int" type="number" min="1" max="30" step="1" value="7" />
|
|
<div class="hint">超过此天数的调试图像目录将被自动删除</div>
|
|
</div>
|
|
<div>
|
|
<label class="label">最大文件数�?/label>
|
|
<input id="debug_captures_max_files" class="input" data-key="debug_captures.max_files" data-type="int" type="number" min="100" max="10000" step="100" value="2000" />
|
|
<div class="hint">超过此数量的调试图像将被自动清理(优先删除最旧的�?/div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sectionTitle">OCR 模式</div>
|
|
<div class="row">
|
|
<label class="label">启用 OCR 模式1(备用)</label>
|
|
<label class="check">
|
|
<input id="enable_ocr_mode1" type="checkbox" data-key="enable_ocr_mode1" data-type="bool" />
|
|
<span>启用</span>
|
|
</label>
|
|
<div class="hint">当模�?识别失败时,自动尝试模式1</div>
|
|
</div>
|
|
|
|
<div class="sectionTitle">模板匹配</div>
|
|
<div class="row">
|
|
<label class="label">启用福袋模板匹配</label>
|
|
<label class="check">
|
|
<input id="fudai_template_match_enabled" type="checkbox" data-key="fudai_template_match_enabled" data-type="bool" />
|
|
<span>启用</span>
|
|
</label>
|
|
<div class="hint">使用模板匹配辅助查找福袋图标</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">模板匹配阈�?/label>
|
|
<input id="fudai_template_match_threshold" class="input" data-key="fudai_template_match_threshold" data-type="float" type="number" min="0" max="1" step="0.01" value="0.7" />
|
|
<div class="hint">匹配分数阈值,范围 0-1,默�?0.7</div>
|
|
</div>
|
|
|
|
<div class="sectionTitle">像素检�?/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" />
|
|
<div class="hint">用于检测抽奖结果弹窗,范围 0-1,默�?0.8</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="label">直播间匹配阈�?/label>
|
|
<input id="live_room_match_threshold" class="input" data-key="live_room_match_threshold" data-type="float" type="number" min="0" max="1" step="0.01" value="0.7" />
|
|
<div class="hint">用于判断是否在直播间,范�?0-1,默�?0.7</div>
|
|
</div>
|
|
|
|
<div class="sectionTitle">阶段诊断</div>
|
|
<div class="row grid2">
|
|
<div>
|
|
<label class="label">最大诊断时�?�?</label>
|
|
<input id="stage_diag_max_time" class="input" data-key="stage_diag_max_time" data-type="float" type="number" min="1" max="60" step="1" />
|
|
</div>
|
|
<div>
|
|
<label class="label">单步最大时�?�?</label>
|
|
<input id="stage_diag_max_step_time" class="input" data-key="stage_diag_max_step_time" data-type="float" type="number" min="0.5" max="10" step="0.5" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="card cardShot">
|
|
<div class="cardTitle">
|
|
<span class="sectionIcon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M7 15l3-3 3 3 5-5"/></svg>
|
|
</span>
|
|
实时截图
|
|
</div>
|
|
<div class="preview">
|
|
<img id="liveShot" alt="实时截图预览" src="/pic/screenshot.png" />
|
|
</div>
|
|
<div class="hint" id="liveShotStatus">等待截图�?/div>
|
|
</section>
|
|
|
|
<section class="card cardReservations">
|
|
<div class="cardTitle">
|
|
<span class="sectionIcon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
|
|
</span>
|
|
预约队列
|
|
</div>
|
|
<div id="reservationsContent" class="reservationsContent">
|
|
<div class="hint">暂无预约信息</div>
|
|
</div>
|
|
|
|
<div class="divider"></div>
|
|
<details open>
|
|
<summary class="sectionTitle">已记录直播间(高价值)
|
|
<span style="float:right; font-weight:normal; font-size:13px; margin-left:8px">
|
|
<button id="hv_expand_all" class="btn small">展开全部</button>
|
|
<button id="hv_collapse_all" class="btn small">折叠全部</button>
|
|
</span>
|
|
</summary>
|
|
<div id="highValueRoomsContent" class="reservationsContent">
|
|
<div class="hint">暂无记录</div>
|
|
</div>
|
|
</details>
|
|
</section>
|
|
|
|
<section class="card cardLog">
|
|
<div class="cardTitle">
|
|
<span class="sectionIcon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16v16H4z"/><path d="M8 8h8"/><path d="M8 12h8"/><path d="M8 16h6"/></svg>
|
|
</span>
|
|
日志
|
|
</div>
|
|
|
|
<div class="logRow">
|
|
<div class="logSection">
|
|
<div class="logHeader">
|
|
<div class="logTitle">运行日志</div>
|
|
<div class="logHeaderActions">
|
|
<select id="runLogMode" class="small">
|
|
<option value="filter">筛选</option>
|
|
<option value="search">搜索</option>
|
|
</select>
|
|
<input id="runLogSearch" class="logSearchBox" placeholder="筛选/搜索运行日志" />
|
|
<button id="btnRunLogSearch" class="btn small">搜索</button>
|
|
<button id="btnRunLogClear" class="btn small">清除</button>
|
|
</div>
|
|
</div>
|
|
<pre id="runLog" class="log"></pre>
|
|
</div>
|
|
|
|
<div class="logSection">
|
|
<div class="logHeader">
|
|
<div class="logTitle">行为日志</div>
|
|
<div class="logHeaderActions">
|
|
<input id="actionsLogSearch" class="logSearchBox" placeholder="搜索行为日志(只在最近条目中搜索)" />
|
|
<button id="btnActionsRefresh" class="btn small">刷新</button>
|
|
</div>
|
|
</div>
|
|
<pre id="actionsLog" class="log"></pre>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</div>
|
|
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|