diff --git a/.stats_test_cache.json b/.stats_test_cache.json deleted file mode 100644 index 231af1b..0000000 --- a/.stats_test_cache.json +++ /dev/null @@ -1 +0,0 @@ -{"ts": 1765641063.2151546, "counters": {"fudai_seen": 1, "fudai_open_detail": 1, "fudai_click_attend": 1, "fudai_attend_ok": 1, "fudai_result_win": 1}, "fudai_last": {"content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0, "updated_ts": 1765641063.1966858}, "events": [{"ts": 1765641063.1946857, "type": "fudai_seen", "meta": {"content": "测试内容A", "countdown": "", "participants": null, "copies": null, "prize_value_yuan": null}}, {"ts": 1765641063.1966858, "type": "fudai_open_detail", "meta": {"content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0}}, {"ts": 1765641063.1966858, "type": "fudai_click_attend", "meta": {"content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0}}, {"ts": 1765641063.1966858, "type": "fudai_attend_ok", "meta": {"content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0}}, {"ts": 1765641063.1966858, "type": "fudai_result_win", "meta": {"content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0}}], "wins": [{"ts": 1765641063.1966858, "content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0}]} diff --git a/.web_stats_cache.json b/.web_stats_cache.json deleted file mode 100644 index 1079ee0..0000000 --- a/.web_stats_cache.json +++ /dev/null @@ -1 +0,0 @@ -{"ts": 1765685532.6116447, "counters": {"fudai_open_detail": 74, "fudai_seen": 80, "fudai_skip_value_low": 28, "fudai_open_error": 8, "switch_room": 40, "switch_room_no_fudai": 28, "fudai_skip_countdown_short": 3, "switch_room_countdown": 3, "switch_room_value": 8, "fudai_click_attend": 2, "fudai_result_no_win": 2}, "fudai_last": {"content": "【粉丝专属】iPhone17手机256G颜色随机", "countdown": "14:29后开奖", "participants": 2132, "copies": 1, "prize_value_yuan": 5999.0, "updated_ts": 1765684579.3024325}, "events": [{"ts": 1765641806.1646142, "type": "fudai_open_detail", "meta": {"content": "", "countdown": "", "participants": null, "copies": null, "prize_value_yuan": null}}, {"ts": 1765641813.7004516, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "", "participants": null, "copies": null, "prize_value_yuan": null}}, {"ts": 1765641815.2687662, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "07:19后开奖", "participants": 32, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641819.8364112, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "07:19后开奖", "participants": 32, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641826.9612343, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "07:19后开奖", "participants": 32, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641829.2069504, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:07", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641833.980556, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:07", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641841.1970615, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:07", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641842.785327, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:50后开奖", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641848.7064586, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:50后开奖", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641857.2592785, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:50后开奖", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641858.9027817, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:35后开奖", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641863.3506944, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:35后开奖", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641869.6957817, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:35后开奖", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641871.0666997, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:21", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641875.5607815, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:21", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641882.6100206, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:21", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641883.8911793, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:09", "participants": 36, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641888.1028545, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:09", "participants": 36, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641894.613921, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:09", "participants": 36, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641895.7618783, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "05:57后开奖", "participants": 38, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641899.9785337, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "05:57后开奖", "participants": 38, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641911.0231695, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "05:57后开奖", "participants": 38, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641917.407863, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "05:45后开奖", "participants": 40, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641921.8859735, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "05:45后开奖", "participants": 40, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641928.484901, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...?", "countdown": "05:45后开奖", "participants": 40, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641929.8940105, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...?", "countdown": "05:23", "participants": 42, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641934.5209298, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...?", "countdown": "05:23", "participants": 42, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641942.1214135, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "05:23", "participants": 42, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641943.7291014, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "05:10", "participants": 45, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641948.3543782, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "05:10", "participants": 45, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641954.6484, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "05:10", "participants": 45, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641956.0350695, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:56", "participants": 49, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641960.601424, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:56", "participants": 49, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641970.7799497, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:56", "participants": 49, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641975.1128607, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:44", "participants": 54, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641979.8364713, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:44", "participants": 54, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641988.2277842, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:44", "participants": 54, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641990.160375, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:25", "participants": 55, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641994.6146042, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:25", "participants": 55, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642002.9716992, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:25", "participants": 55, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642007.506003, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:10后开奖", "participants": 56, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642012.1483693, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:10后开奖", "participants": 56, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642020.3989222, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:10后开奖", "participants": 56, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642025.0709348, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "03:53后开奖", "participants": 59, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642029.925698, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "03:53后开奖", "participants": 59, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642038.903671, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "03:53后开奖", "participants": 59, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642041.6635585, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "03:35后开奖", "participants": 59, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642046.2410498, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "03:35后开奖", "participants": 59, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642053.7710354, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "03:35后开奖", "participants": 59, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642057.1808536, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "03:19", "participants": 59, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642061.895285, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "03:19", "participants": 59, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642068.8184595, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...:", "countdown": "03:19", "participants": 59, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642070.955662, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...:", "countdown": "03:03", "participants": 64, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642075.7010012, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...:", "countdown": "03:03", "participants": 64, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642083.4287796, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...:", "countdown": "03:03", "participants": 64, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642089.416829, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...:", "countdown": "02:49后开奖", "participants": 64, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642094.6059554, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...:", "countdown": "02:49后开奖", "participants": 64, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642101.880727, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...:", "countdown": "02:49后开奖", "participants": 64, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642106.1927557, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...:", "countdown": "02:30", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642110.9327767, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...:", "countdown": "02:30", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642138.4833968, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...:", "countdown": "02:30", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642150.4977531, "type": "fudai_seen", "meta": {"content": "本5由10·161cm下单1号商品.41kg点击右下角了吗清晰度切换建议蓝光观看", "countdown": "02:30", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642161.6565473, "type": "fudai_seen", "meta": {"content": "=买5由10161cm亮片鹅绒服41kg点击右下角下单28号商品清晰度切换建议蓝光观看", "countdown": "真好看7X", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642165.0781605, "type": "fudai_open_error", "meta": {"content": "=买5由10161cm亮片鹅绒服41kg点击右下角下单28号商品清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642169.2564404, "type": "fudai_open_detail", "meta": {"content": "=买5由10161cm亮片鹅绒服41kg点击右下角下单28号商品清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642177.1104836, "type": "fudai_seen", "meta": {"content": "保买5色0161cm.41kg点击右下角下单22号商品清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642184.1507268, "type": "fudai_seen", "meta": {"content": "保买5由15.161cm短款看看.41kg点击右下角猫猫项链什么的?有吗清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642186.4430885, "type": "fudai_open_error", "meta": {"content": "保买5由15.161cm短款看看.41kg点击右下角猫猫项链什么的?有吗清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642191.4219933, "type": "fudai_open_detail", "meta": {"content": "保买5由15.161cm短款看看.41kg点击右下角猫猫项链什么的?有吗清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642199.355485, "type": "fudai_seen", "meta": {"content": "保火5国5161cm有深色就好了.41kg点击右下角鹅绒裤喇叭裤清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642204.4233127, "type": "fudai_seen", "meta": {"content": "161cm小个子皮衣,等了一晚41kg点击右下角商品清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642205.8118262, "type": "fudai_open_error", "meta": {"content": "161cm小个子皮衣,等了一晚41kg点击右下角商品清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642209.8793645, "type": "fudai_open_detail", "meta": {"content": "161cm小个子皮衣,等了一晚41kg点击右下角商品清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642219.0018735, "type": "fudai_seen", "meta": {"content": "·161cm小个子皮衣,等了一晚.41kg点击右下角短款清晰度切换建议蓝光观看", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642223.9893112, "type": "fudai_seen", "meta": {"content": "露洁色修锁活舱牙膏", "countdown": "", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642225.5172098, "type": "fudai_open_error", "meta": {"content": "露洁色修锁活舱牙膏", "countdown": "9.9", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642238.2340302, "type": "fudai_open_detail", "meta": {"content": "露洁色修锁活舱牙膏", "countdown": "9.9", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765642245.5184321, "type": "fudai_seen", "meta": {"content": "古法黄金色手工编织爆款小胖福吊坠项链:", "countdown": "9.9", "participants": 66, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765644133.238689, "type": "fudai_open_detail", "meta": {"content": "古法黄金色手工编织爆款小胖福吊坠项链:", "countdown": "07:57", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644141.2824533, "type": "fudai_seen", "meta": {"content": "谨防网络诈骗。实际下载应用巴,被焦作的带偏了", "countdown": "07:57", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644146.4602735, "type": "fudai_seen", "meta": {"content": "谨防网络诈骗。实际下载应用巴,被焦作的带偏了", "countdown": "请谨慎别。1切勿", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644147.5743883, "type": "fudai_open_error", "meta": {"content": "谨防网络诈骗。实际下载应用巴,被焦作的带偏了", "countdown": "请谨慎辨别。切勿", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644294.0956485, "type": "fudai_open_detail", "meta": {"content": "谨防网络诈骗。实际下载应用巴,被焦作的带偏了", "countdown": "请谨慎辨别。切勿", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644301.967299, "type": "fudai_seen", "meta": {"content": "到霉孩子没人接下班么下:就剩花宝一个人了", "countdown": "请谨慎辨别。切勿", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644306.3315964, "type": "fudai_seen", "meta": {"content": "到霉孩子没人接下班么下:就剩花宝一个人了", "countdown": "崖防物网给FF栅·大", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644308.180543, "type": "fudai_open_error", "meta": {"content": "到霉孩子没人接下班么下:就剩花宝一个人了", "countdown": "崖物网给证栅。大", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644328.8164256, "type": "fudai_open_detail", "meta": {"content": "到霉孩子没人接下班么下:就剩花宝一个人了", "countdown": "崖物网给证栅。大", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644337.2981572, "type": "fudai_seen", "meta": {"content": "发J发文iE下:京就剩花宝一个人了巴,被焦作的带偏了", "countdown": "崖物网给证栅。大", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644342.2411447, "type": "fudai_seen", "meta": {"content": "J7UMJTU-E巴,被焦作的带偏了了E", "countdown": "", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765644343.309523, "type": "fudai_open_error", "meta": {"content": "J7UMJTU-E巴,被焦作的带偏了了E", "countdown": "", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765676891.4075341, "type": "fudai_open_detail", "meta": {"content": "J7UMJTU-E巴,被焦作的带偏了了E", "countdown": "", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765676897.8725686, "type": "fudai_seen", "meta": {"content": "【粉丝专属】苹/果17256-官方正品颜色随机不.", "countdown": "", "participants": 21, "copies": 1, "prize_value_yuan": 1999.0}}, {"ts": 1765676926.4379153, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【粉丝专属】苹/果17256-官方正品颜色随机不.", "countdown": "11:24", "participants": 6476, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765676955.4901335, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【粉丝专属】苹/果17256-官方正品颜色随机不.", "countdown": "11:24", "participants": 6476, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765676970.3578174, "type": "fudai_open_detail", "meta": {"content": "【粉丝专属】苹/果17256-官方正品颜色随机不.", "countdown": "11:24", "participants": 6476, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765676976.4665527, "type": "fudai_seen", "meta": {"content": "【刘一一专属】DJOsmoPocket", "countdown": "11:24", "participants": 6476, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765676995.509221, "type": "fudai_open_detail", "meta": {"content": "【刘一一专属】DJOsmoPocket", "countdown": "12:57", "participants": 1555, "copies": 1, "prize_value_yuan": 4999.0}}, {"ts": 1765677002.0511475, "type": "fudai_seen", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发", "countdown": "12:57", "participants": 1555, "copies": 1, "prize_value_yuan": 4999.0}}, {"ts": 1765677004.5199137, "type": "fudai_skip", "meta": {"reason": "countdown_short", "content": "【梅姐专属】iPhone17256GB颜色随机发", "countdown": "00:03", "participants": 22316, "copies": 2, "prize_value_yuan": 5999.0}}, {"ts": 1765677004.5199137, "type": "switch_room", "meta": {"reason": "countdown", "content": "【梅姐专属】iPhone17256GB颜色随机发", "countdown": "00:03", "participants": 22316, "copies": 2, "prize_value_yuan": 5999.0}}, {"ts": 1765677031.0446482, "type": "fudai_open_detail", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发", "countdown": "00:03", "participants": 22316, "copies": 2, "prize_value_yuan": 5999.0}}, {"ts": 1765677037.2331884, "type": "fudai_seen", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发", "countdown": "00:03", "participants": 22316, "copies": 2, "prize_value_yuan": 5999.0}}, {"ts": 1765677065.5957048, "type": "fudai_open_detail", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发", "countdown": "02:25", "participants": 23179, "copies": 2, "prize_value_yuan": 5999.0}}, {"ts": 1765677073.7246122, "type": "fudai_seen", "meta": {"content": "讲解中头皮养护专硕胶养头皮KO枯燥断发丝V一H全MBaEn护主国用姐好几年了,毛高北325198¥198", "countdown": "02:25", "participants": 23179, "copies": 2, "prize_value_yuan": 5999.0}}, {"ts": 1765677074.7943935, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "讲解中头皮养护专硕胶养头皮KO枯燥断发丝V一H全MBaEn护主国用姐好几年了,毛高北325198¥198", "countdown": "粉丝团", "participants": 23179, "copies": 2, "prize_value_yuan": 12.0}}, {"ts": 1765677076.1807349, "type": "switch_room", "meta": {"reason": "value", "content": "讲解中头皮养护专硕胶养头皮KO枯燥断发丝V一H全MBaEn护主国用姐好几年了,毛高北325198¥198", "countdown": "粉丝团", "participants": 23179, "copies": 2, "prize_value_yuan": 12.0}}, {"ts": 1765677257.1100516, "type": "fudai_open_detail", "meta": {"content": "讲解中头皮养护专硕胶养头皮KO枯燥断发丝V一H全MBaEn护主国用姐好几年了,毛高北325198¥198", "countdown": "粉丝团", "participants": 23179, "copies": 2, "prize_value_yuan": 12.0}}, {"ts": 1765677263.689632, "type": "fudai_seen", "meta": {"content": "【粉丝专属】苹/果17256-官方正品颜色随机不.:", "countdown": "粉丝团", "participants": 23179, "copies": 2, "prize_value_yuan": 12.0}}, {"ts": 1765677291.5003893, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【粉丝专属】苹/果17256-官方正品颜色随机不.:", "countdown": "05:18", "participants": 12144, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677320.320626, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【粉丝专属】苹/果17256-官方正品颜色随机不.:", "countdown": "05:18", "participants": 12144, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677338.8770022, "type": "fudai_open_detail", "meta": {"content": "【粉丝专属】苹/果17256-官方正品颜色随机不.:", "countdown": "05:18", "participants": 12144, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677345.0818095, "type": "fudai_seen", "meta": {"content": "【刘一一专属】DJOsmoPocket", "countdown": "05:18", "participants": 12144, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677363.9279454, "type": "fudai_open_detail", "meta": {"content": "【刘一一专属】DJOsmoPocket", "countdown": "06:48", "participants": 3573, "copies": 1, "prize_value_yuan": 4999.0}}, {"ts": 1765677370.3914638, "type": "fudai_seen", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "06:48", "participants": 3573, "copies": 1, "prize_value_yuan": 4999.0}}, {"ts": 1765677400.4035275, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "11:57", "participants": 5921, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677416.0100634, "type": "fudai_open_detail", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "11:57", "participants": 5921, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677422.699016, "type": "fudai_seen", "meta": {"content": "绒服大上新,就今天未达成", "countdown": "11:57", "participants": 5921, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677424.689771, "type": "fudai_skip", "meta": {"reason": "countdown_short", "content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 5921, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677424.689771, "type": "switch_room", "meta": {"reason": "countdown", "content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 5921, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677444.05413, "type": "fudai_open_detail", "meta": {"content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 5921, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677450.5459766, "type": "fudai_seen", "meta": {"content": "【官方】法国佩枪朱丽叶香水位面女王EGO女士香水..:", "countdown": "0¥参考价值:?", "participants": 5921, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677468.8988874, "type": "fudai_open_detail", "meta": {"content": "【官方】法国佩枪朱丽叶香水位面女王EGO女士香水..:", "countdown": "06:56", "participants": 333, "copies": 1, "prize_value_yuan": 890.0}}, {"ts": 1765677475.254364, "type": "fudai_seen", "meta": {"content": "外贸原单衣服一件", "countdown": "06:56", "participants": 333, "copies": 1, "prize_value_yuan": 890.0}}, {"ts": 1765677476.661917, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "外贸原单衣服一件", "countdown": "07:30", "participants": 176, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677478.1345334, "type": "switch_room", "meta": {"reason": "value", "content": "外贸原单衣服一件", "countdown": "07:30", "participants": 176, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677495.241632, "type": "fudai_open_detail", "meta": {"content": "外贸原单衣服一件", "countdown": "07:30", "participants": 176, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677501.6581345, "type": "fudai_seen", "meta": {"content": "福袋【新国标】羽绒包", "countdown": "07:30", "participants": 176, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677502.5976913, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "福袋【新国标】羽绒包", "countdown": "03:44", "participants": 208, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765677503.9937162, "type": "switch_room", "meta": {"reason": "value", "content": "福袋【新国标】羽绒包", "countdown": "03:44", "participants": 208, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765677531.3626618, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "福袋【新国标】羽绒包", "countdown": "03:44", "participants": 208, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765677570.7949805, "type": "fudai_open_detail", "meta": {"content": "福袋【新国标】羽绒包", "countdown": "03:44", "participants": 208, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765677577.3928845, "type": "fudai_seen", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "03:44", "participants": 208, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765677608.7120697, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "08:30", "participants": 9212, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677627.586731, "type": "fudai_open_detail", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "08:30", "participants": 9212, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677634.4160109, "type": "fudai_seen", "meta": {"content": "绒服大上新,就今天未达成", "countdown": "08:30", "participants": 9212, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677637.2021346, "type": "fudai_skip", "meta": {"reason": "countdown_short", "content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 9212, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677637.2021346, "type": "switch_room", "meta": {"reason": "countdown", "content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 9212, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677657.6107862, "type": "fudai_open_detail", "meta": {"content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 9212, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677663.8681977, "type": "fudai_seen", "meta": {"content": "【官方】法国佩枪朱丽叶香水位面女王EGO女士香水..:", "countdown": "0¥参考价值:?", "participants": 9212, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677685.8830693, "type": "fudai_open_detail", "meta": {"content": "【官方】法国佩枪朱丽叶香水位面女王EGO女士香水..:", "countdown": "03:23", "participants": 617, "copies": 1, "prize_value_yuan": 890.0}}, {"ts": 1765677692.3542004, "type": "fudai_seen", "meta": {"content": "外贸原单衣服一件:", "countdown": "03:23", "participants": 617, "copies": 1, "prize_value_yuan": 890.0}}, {"ts": 1765677694.476788, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "外贸原单衣服一件:", "countdown": "03:53", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677695.935114, "type": "switch_room", "meta": {"reason": "value", "content": "外贸原单衣服一件:", "countdown": "03:53", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677767.2862816, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "外贸原单衣服一件:", "countdown": "03:53", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677797.6818173, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "外贸原单衣服一件:", "countdown": "03:53", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677825.064915, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "外贸原单衣服一件:", "countdown": "03:53", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677863.7864842, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "外贸原单衣服一件:", "countdown": "03:53", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677892.922998, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "外贸原单衣服一件:", "countdown": "03:53", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677902.0040681, "type": "fudai_open_detail", "meta": {"content": "外贸原单衣服一件:", "countdown": "03:53", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677909.5372612, "type": "fudai_seen", "meta": {"content": "BIU大哥有罗意威大号的$注了主播", "countdown": "03:53", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677913.1525266, "type": "fudai_seen", "meta": {"content": "日IL快商品电", "countdown": "粉丝团", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677914.0275185, "type": "fudai_open_error", "meta": {"content": "日IL快商品电", "countdown": "", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677918.969354, "type": "fudai_open_detail", "meta": {"content": "日IL快商品电", "countdown": "", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677925.3356788, "type": "fudai_seen", "meta": {"content": "【粉丝专属】苹/果17256-官方正品颜色随机不.:", "countdown": "", "participants": 242, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765677955.4639711, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【粉丝专属】苹/果17256-官方正品颜色随机不.:", "countdown": "14:24", "participants": 1415, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765677984.5859017, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【粉丝专属】苹/果17256-官方正品颜色随机不.:", "countdown": "14:24", "participants": 1415, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765678008.5376248, "type": "fudai_open_detail", "meta": {"content": "【粉丝专属】苹/果17256-官方正品颜色随机不.:", "countdown": "14:24", "participants": 1415, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765678014.5325038, "type": "fudai_seen", "meta": {"content": "【刘一一专属】DJOsmoPocket", "countdown": "14:24", "participants": 1415, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765678037.279072, "type": "fudai_open_detail", "meta": {"content": "【刘一一专属】DJOsmoPocket", "countdown": "10:45后开奖", "participants": 2096, "copies": 1, "prize_value_yuan": 4999.0}}, {"ts": 1765678043.638148, "type": "fudai_seen", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "10:45后开奖", "participants": 2096, "copies": 1, "prize_value_yuan": 4999.0}}, {"ts": 1765678045.527103, "type": "fudai_click_attend", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "00:43后开奖", "participants": 18278, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765678095.4227757, "type": "fudai_result_no_win", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "00:43后开奖", "participants": 18278, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765678160.328259, "type": "switch_room", "meta": {"reason": "unknown", "content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "00:43后开奖", "participants": 18278, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765678187.8157198, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "00:43后开奖", "participants": 18278, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765678210.236082, "type": "fudai_open_detail", "meta": {"content": "【梅姐专属】iPhone17256GB颜色随机发E", "countdown": "00:43后开奖", "participants": 18278, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765678216.6798441, "type": "fudai_seen", "meta": {"content": "小熊吸尘器家用小型强力大吸力手持吸尘器清理宠物..:", "countdown": "00:43后开奖", "participants": 18278, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765678217.781811, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "小熊吸尘器家用小型强力大吸力手持吸尘器清理宠物..:", "countdown": "00:51", "participants": 889, "copies": 1, "prize_value_yuan": 499.0}}, {"ts": 1765678219.9587243, "type": "switch_room", "meta": {"reason": "value", "content": "小熊吸尘器家用小型强力大吸力手持吸尘器清理宠物..:", "countdown": "00:51", "participants": 889, "copies": 1, "prize_value_yuan": 499.0}}, {"ts": 1765678243.9019706, "type": "fudai_open_detail", "meta": {"content": "小熊吸尘器家用小型强力大吸力手持吸尘器清理宠物..:", "countdown": "00:51", "participants": 889, "copies": 1, "prize_value_yuan": 499.0}}, {"ts": 1765678250.1049361, "type": "fudai_seen", "meta": {"content": "【官方】法国佩枪朱丽叶香水位面女王EGO女士香水..", "countdown": "00:51", "participants": 889, "copies": 1, "prize_value_yuan": 499.0}}, {"ts": 1765678276.0468595, "type": "fudai_open_detail", "meta": {"content": "【官方】法国佩枪朱丽叶香水位面女王EGO女士香水..", "countdown": "03:42后开奖", "participants": 587, "copies": 1, "prize_value_yuan": 890.0}}, {"ts": 1765678282.3668816, "type": "fudai_seen", "meta": {"content": "外贸原单衣服一件", "countdown": "03:42后开奖", "participants": 587, "copies": 1, "prize_value_yuan": 890.0}}, {"ts": 1765678283.4831388, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "外贸原单衣服一件", "countdown": "09:11", "participants": 163, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765678285.0399504, "type": "switch_room", "meta": {"reason": "value", "content": "外贸原单衣服一件", "countdown": "09:11", "participants": 163, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765678316.0549383, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "外贸原单衣服一件", "countdown": "09:11", "participants": 163, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765679733.0306756, "type": "fudai_open_detail", "meta": {"content": "外贸原单衣服一件", "countdown": "09:11", "participants": 163, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765679739.8973644, "type": "fudai_seen", "meta": {"content": "智能通话儿童手表生活防水实时查找安全呵护【颜色..", "countdown": "09:11", "participants": 163, "copies": 1, "prize_value_yuan": 159.0}}, {"ts": 1765679741.9627383, "type": "fudai_click_attend", "meta": {"content": "智能通话儿童手表生活防水实时查找安全呵护【颜色..", "countdown": "00:11", "participants": 311, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765679760.384947, "type": "fudai_result_no_win", "meta": {"content": "智能通话儿童手表生活防水实时查找安全呵护【颜色..", "countdown": "00:11", "participants": 311, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765680903.489502, "type": "fudai_open_detail", "meta": {"content": "智能通话儿童手表生活防水实时查找安全呵护【颜色..", "countdown": "00:11", "participants": 311, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765680958.1174943, "type": "fudai_open_detail", "meta": {"content": "智能通话儿童手表生活防水实时查找安全呵护【颜色..", "countdown": "00:11", "participants": 311, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765680968.9017298, "type": "fudai_seen", "meta": {"content": "勺吗6G大内存两孩F", "countdown": "00:11", "participants": 311, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765681006.1121674, "type": "fudai_open_detail", "meta": {"content": "勺吗6G大内存两孩F", "countdown": "", "participants": 311, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765681013.7169085, "type": "fudai_seen", "meta": {"content": "智能通话儿童手表生活防水实时查找安全呵护【颜色..:", "countdown": "", "participants": 311, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765681857.9818377, "type": "fudai_open_detail", "meta": {"content": "智能通话儿童手表生活防水实时查找安全呵护【颜色..:", "countdown": "09:15", "participants": 39, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765681866.3523576, "type": "fudai_seen", "meta": {"content": "智能通话儿童手表生活防水实时查找安全呵护【颜色..:", "countdown": "09:15", "participants": 39, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765681896.0117123, "type": "fudai_open_detail", "meta": {"content": "智能通话儿童手表生活防水实时查找安全呵护【颜色..:", "countdown": "05:08", "participants": 127, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765681904.0083394, "type": "fudai_seen", "meta": {"content": "【陈三废专属】iPhone17256GB颜色随机发货", "countdown": "05:08", "participants": 127, "copies": 1, "prize_value_yuan": 899.0}}, {"ts": 1765681947.344302, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【陈三废专属】iPhone17256GB颜色随机发货", "countdown": "03:19", "participants": 17727, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765681969.3419287, "type": "fudai_open_detail", "meta": {"content": "【陈三废专属】iPhone17256GB颜色随机发货", "countdown": "03:19", "participants": 17727, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765681978.9451516, "type": "fudai_seen", "meta": {"content": "绒服大上新,就今天未达成", "countdown": "03:19", "participants": 17727, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765681986.3480124, "type": "fudai_seen", "meta": {"content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 17727, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682070.800549, "type": "fudai_open_detail", "meta": {"content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 17727, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682168.9497051, "type": "fudai_open_detail", "meta": {"content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 17727, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682320.1624768, "type": "fudai_open_detail", "meta": {"content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 17727, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682399.8109577, "type": "fudai_open_detail", "meta": {"content": "绒服大上新,就今天未达成", "countdown": "0¥参考价值:?", "participants": 17727, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682406.9524143, "type": "fudai_seen", "meta": {"content": "小熊吸尘器家用小型强力大吸力手持吸尘器清理宠物..", "countdown": "0¥参考价值:?", "participants": 17727, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682408.7219648, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "小熊吸尘器家用小型强力大吸力手持吸尘器清理宠物..", "countdown": "01:05", "participants": 574, "copies": 1, "prize_value_yuan": 499.0}}, {"ts": 1765682410.1156175, "type": "switch_room", "meta": {"reason": "value", "content": "小熊吸尘器家用小型强力大吸力手持吸尘器清理宠物..", "countdown": "01:05", "participants": 574, "copies": 1, "prize_value_yuan": 499.0}}, {"ts": 1765682444.5968096, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "小熊吸尘器家用小型强力大吸力手持吸尘器清理宠物..", "countdown": "01:05", "participants": 574, "copies": 1, "prize_value_yuan": 499.0}}, {"ts": 1765682464.7320433, "type": "fudai_open_detail", "meta": {"content": "小熊吸尘器家用小型强力大吸力手持吸尘器清理宠物..", "countdown": "01:05", "participants": 574, "copies": 1, "prize_value_yuan": 499.0}}, {"ts": 1765682472.103769, "type": "fudai_seen", "meta": {"content": "【王艳专属】iPhone17256GB颜色随机发E", "countdown": "01:05", "participants": 574, "copies": 1, "prize_value_yuan": 499.0}}, {"ts": 1765682495.8125389, "type": "fudai_open_detail", "meta": {"content": "【王艳专属】iPhone17256GB颜色随机发E", "countdown": "06:47后开奖", "participants": 4818, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682502.7114153, "type": "fudai_seen", "meta": {"content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "06:47后开奖", "participants": 4818, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682538.9800222, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "02:51", "participants": 1899, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765682573.2285452, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "02:51", "participants": 1899, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765682601.9267757, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "02:51", "participants": 1899, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765682624.5796547, "type": "fudai_open_detail", "meta": {"content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "02:51", "participants": 1899, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765682632.0770183, "type": "fudai_seen", "meta": {"content": "【陈三废专属】iPhone17256GB颜色随机发货", "countdown": "02:51", "participants": 1899, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765682674.8815076, "type": "fudai_open_detail", "meta": {"content": "【陈三废专属】iPhone17256GB颜色随机发货", "countdown": "01:15后开奖", "participants": 21940, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682683.1581953, "type": "fudai_seen", "meta": {"content": "男士内裤库(1条装)(颜色随机/码数咨询客服):", "countdown": "01:15后开奖", "participants": 21940, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682684.1275752, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "男士内裤库(1条装)(颜色随机/码数咨询客服):", "countdown": "03:14", "participants": 35, "copies": 1, "prize_value_yuan": 33.9}}, {"ts": 1765682686.4504454, "type": "switch_room", "meta": {"reason": "value", "content": "男士内裤库(1条装)(颜色随机/码数咨询客服):", "countdown": "03:14", "participants": 35, "copies": 1, "prize_value_yuan": 33.9}}, {"ts": 1765682775.390967, "type": "fudai_open_detail", "meta": {"content": "男士内裤库(1条装)(颜色随机/码数咨询客服):", "countdown": "03:14", "participants": 35, "copies": 1, "prize_value_yuan": 33.9}}, {"ts": 1765682783.2082818, "type": "fudai_seen", "meta": {"content": "【陈三废专属】iPhone17256GB颜色随机发货", "countdown": "03:14", "participants": 35, "copies": 1, "prize_value_yuan": 33.9}}, {"ts": 1765682809.429218, "type": "fudai_open_detail", "meta": {"content": "【陈三废专属】iPhone17256GB颜色随机发货", "countdown": "09:38", "participants": 2150, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682816.016557, "type": "fudai_seen", "meta": {"content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "09:38", "participants": 2150, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682853.7858112, "type": "fudai_open_detail", "meta": {"content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "12:49", "participants": 609, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765682861.4279912, "type": "fudai_seen", "meta": {"content": "【陈三废专属】iPhone17256GB颜色随机发货", "countdown": "12:49", "participants": 609, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765682889.5082347, "type": "fudai_open_detail", "meta": {"content": "【陈三废专属】iPhone17256GB颜色随机发货", "countdown": "08:19", "participants": 5981, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682896.4087884, "type": "fudai_seen", "meta": {"content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "08:19", "participants": 5981, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765682927.1786408, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "11:30", "participants": 755, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765682953.409201, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "11:30", "participants": 755, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765683053.3603709, "type": "fudai_open_detail", "meta": {"content": "小米RedmiPadSE新款平板11英寸护眼大屏全金属.:", "countdown": "11:30", "participants": 755, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765683061.803743, "type": "fudai_seen", "meta": {"content": "存制仅限一单单独补D3吗", "countdown": "11:30", "participants": 755, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765683067.8848145, "type": "fudai_seen", "meta": {"content": "存制仅限一单单独补D3吗", "countdown": "", "participants": 755, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765683079.5509496, "type": "fudai_seen", "meta": {"content": "inne限量库存制仅限一单柜:", "countdown": "", "participants": 755, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765683092.1055064, "type": "fudai_open_detail", "meta": {"content": "inne限量库存制仅限一单柜:", "countdown": "", "participants": 755, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765683107.0079956, "type": "fudai_seen", "meta": {"content": "【王艳专属】iPhone17256GB颜色随机发E", "countdown": "", "participants": 755, "copies": 1, "prize_value_yuan": 1199.0}}, {"ts": 1765683171.1817665, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【王艳专属】iPhone17256GB颜色随机发E", "countdown": "06:34后开奖", "participants": 5445, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765683236.2541673, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【王艳专属】iPhone17256GB颜色随机发E", "countdown": "06:34后开奖", "participants": 5445, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765683270.82257, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【王艳专属】iPhone17256GB颜色随机发E", "countdown": "06:34后开奖", "participants": 5445, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765683311.7463672, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【王艳专属】iPhone17256GB颜色随机发E", "countdown": "06:34后开奖", "participants": 5445, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765684566.0966058, "type": "fudai_open_detail", "meta": {"content": "【王艳专属】iPhone17256GB颜色随机发E", "countdown": "06:34后开奖", "participants": 5445, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765684575.7284453, "type": "fudai_seen", "meta": {"content": "【粉丝专属】iPhone17手机256G颜色随机", "countdown": "06:34后开奖", "participants": 5445, "copies": 1, "prize_value_yuan": 5999.0}}, {"ts": 1765684691.0208752, "type": "switch_room", "meta": {"reason": "no_fudai", "content": "【粉丝专属】iPhone17手机256G颜色随机", "countdown": "14:29后开奖", "participants": 2132, "copies": 1, "prize_value_yuan": 5999.0}}], "wins": []} diff --git a/restore_screenshot_service.py b/restore_screenshot_service.py deleted file mode 100644 index afd91ef..0000000 --- a/restore_screenshot_service.py +++ /dev/null @@ -1,350 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -""" -恢复screenshot_service.py文件 -""" - -content = '''"""后台截图服务:持续截图,主流程直接读取最新截图 - -功能: -1. 后台持续截图,避免主流程等待 -2. 截图缓存机制,减少重复截图 -3. 智能线程数配置,根据CPU核心数自动调整 -""" - -from __future__ import annotations - -import os -import threading -import time -from typing import Optional -from datetime import datetime -import path_config -from operations.screenshot_operations import ScreenshotOperations - - -class ScreenshotService: - """后台截图服务:持续截图,避免主流程等待""" - - _instance: Optional['ScreenshotService'] = None - _lock = threading.Lock() - - def __init__(self): - self._running: bool = False - self._thread: Optional[threading.Thread] = None - self._screenshot_ops: ScreenshotOperations = ScreenshotOperations() - self._current_device_id: Optional[str] = None - # 修复:初始化为过去时间,确保第一次请求时缓存过期但时间差合理 - self._last_screenshot_time = time.time() - 10.0 # 10秒前,避免巨大时间差 - self._screenshot_interval = 3.5 # 增加间隔到3.5秒,适应实际截图耗时 - self._cache_valid_duration = 4.0 # 增加缓存有效期到4.0秒,避免频繁过期 - self._screenshot_path: Optional[str] = None - self._last_success = False # 最后一次截图是否成功 - - @classmethod - def get_instance(cls) -> 'ScreenshotService': - """获取单例实例""" - if cls._instance is None: - with cls._lock: - if cls._instance is None: - cls._instance = cls() - return cls._instance - - def start(self, device_id: str, interval: float = 1.5): - """启动后台截图服务 - - 参数: - device_id: 设备ID - interval: 截图间隔(秒),默认1.5秒 - """ - with self._lock: - if self._running: - if self._current_device_id == device_id: - return # 已经在运行,且设备ID相同 - self.stop() # 设备ID不同,先停止 - - self._current_device_id = device_id - self._screenshot_interval = max(0.5, interval) # 最小0.5秒 - self._running = True - - # 初始化截图路径 - try: - self._screenshot_path = path_config.get_screenshot_path() - except (ImportError, AttributeError, OSError): - self._screenshot_path = os.path.join("pic", "screenshot.png") - - self._thread = threading.Thread( - target=self._screenshot_loop, - daemon=True, - name="ScreenshotService" - ) - self._thread.start() - # 修复:设置时间戳为过去足够长的时间,确保第一次请求能等到后台截图完成 - self._last_screenshot_time = time.time() - self._cache_valid_duration - 1.0 # 确保缓存过期但不至于太旧 - timetag = datetime.now().strftime("%H:%M:%S") - print(f"[{timetag}] [截图服务] 已启动后台截图服务,设备: {device_id}, 间隔: {interval}秒") - - def stop(self): - """停止后台截图服务""" - with self._lock: - if not self._running: - return - self._running = False - - if self._thread and self._thread.is_alive(): - self._thread.join(timeout=2.0) - timetag = datetime.now().strftime("%H:%M:%S") - print(f"[{timetag}] [截图服务] 已停止后台截图服务") - - def _screenshot_loop(self): - """后台截图循环""" - loop_count = 0 - while self._running: - try: - device_id = self._current_device_id - if not device_id: - time.sleep(0.1) - continue - - loop_count += 1 - timetag = datetime.now().strftime("%H:%M:%S") - screenshot_start = time.time() - - # 执行截图(禁用服务模式,避免递归) - success = self._screenshot_ops.get_screenshot(device_id, use_service=False) # type: ignore[arg-type] - - screenshot_elapsed = (time.time() - screenshot_start) * 1000 - if success: - # 验证文件完整性后再更新时间戳(避免读取到不完整的文件) - if self._screenshot_path and os.path.exists(self._screenshot_path): - try: - file_size = os.path.getsize(self._screenshot_path) - if file_size >= 1024: - with open(self._screenshot_path, 'rb') as f: - header = f.read(4) - if header == b'\\x89PNG': - self._last_screenshot_time = time.time() - self._last_success = True - print(f"[{timetag}] [截图服务] 后台截图完成 #{loop_count},耗时: {screenshot_elapsed:.0f}ms,文件大小: {file_size/1024:.1f}KB") - else: - self._last_success = False - print(f"[{timetag}] [截图服务] 后台截图文件格式错误 #{loop_count},耗时: {screenshot_elapsed:.0f}ms") - else: - self._last_success = False - print(f"[{timetag}] [截图服务] 后台截图文件太小 #{loop_count} ({file_size}B),耗时: {screenshot_elapsed:.0f}ms") - except (OSError, IOError, ValueError) as e: - self._last_success = False - print(f"[{timetag}] [截图服务] 后台截图文件验证失败 #{loop_count}: {e},耗时: {screenshot_elapsed:.0f}ms") - else: - self._last_success = False - print(f"[{timetag}] [截图服务] 后台截图文件不存在 #{loop_count},耗时: {screenshot_elapsed:.0f}ms") - else: - self._last_success = False - print(f"[{timetag}] [截图服务] 后台截图失败 #{loop_count},耗时: {screenshot_elapsed:.0f}ms") - - # 等待间隔时间,确保不小于0.5秒 - remaining_interval = max(0.5, self._screenshot_interval - screenshot_elapsed / 1000) - time.sleep(remaining_interval) - except Exception as e: - try: - timetag = datetime.now().strftime("%H:%M:%S") - print(f"[{timetag}] [截图服务] 后台截图异常: {e}") - import traceback - traceback.print_exc() - except Exception: - pass - time.sleep(1.0) # 异常时等待1秒再继续 - - def get_screenshot(self, device_id: str, force: bool = False) -> bool: - """获取截图(优先使用缓存) - - 参数: - device_id: 设备ID - force: 是否强制重新截图(忽略缓存) - - 返回: - 是否成功获取截图 - """ - request_start = time.time() - timetag = datetime.now().strftime("%H:%M:%S") - - # 如果设备ID不同,需要重新启动服务 - if self._current_device_id != device_id: - print(f"[{timetag}] [截图服务] 设备ID变更,重新启动服务: {device_id}") - self.start(device_id) - # 等待第一次截图完成 - time.sleep(0.1) - - # 检查缓存是否有效 - if not force: - now = time.time() - time_since_last = now - self._last_screenshot_time - - # 修复:添加边界检查,避免负数或异常值 - if time_since_last < 0: - time_since_last = 0 # 避免时钟回拨导致的负数 - elif time_since_last > 86400: # 如果超过24小时,可能是时间戳错误 - time_since_last = 10.0 # 重置为10秒前 - - # 检查缓存是否有效(时间 + 文件存在 + 文件完整性) - if time_since_last < self._cache_valid_duration: - if self._screenshot_path and os.path.exists(self._screenshot_path): - # 验证文件完整性(避免读取到不完整的文件) - # 使用重试机制,等待文件写入完成 - for retry in range(3): - try: - file_size = os.path.getsize(self._screenshot_path) - if file_size >= 1024: # PNG文件至少1KB - # 尝试快速验证文件头(PNG文件头:89 50 4E 47) - with open(self._screenshot_path, 'rb') as f: - header = f.read(4) - if header == b'\\x89PNG': - # 验证文件尾(PNG文件尾:IEND) - # 更宽松的验证:检查文件末尾50字节内是否有IEND - try: - # 读取文件末尾50字节 - read_size = min(50, file_size) - f.seek(-read_size, 2) - footer = f.read(read_size) - if b'IEND' in footer: - elapsed = (time.time() - request_start) * 1000 - print(f"[{timetag}] [截图服务] [OK] 缓存命中,耗时: {elapsed:.1f}ms (距离上次截图: {time_since_last*1000:.0f}ms, 文件大小: {file_size/1024:.1f}KB)") - return True - elif retry < 2: - # 文件可能还在写入,等待一下 - time.sleep(0.1) - continue - else: - print(f"[{timetag}] [截图服务] [WARN] 缓存文件不完整(文件尾验证失败),等待后台截图") - except (OSError, IOError) as e: - if retry < 2: - time.sleep(0.1) - continue - else: - print(f"[{timetag}] [截图服务] [WARN] 缓存文件读取失败: {e},等待后台截图") - else: - print(f"[{timetag}] [截图服务] [WARN] 缓存文件格式错误,等待后台截图") - break - else: - if retry < 2: - time.sleep(0.05) - continue - else: - print(f"[{timetag}] [截图服务] [WARN] 缓存文件太小 ({file_size}B),等待后台截图") - except (OSError, IOError) as e: - if retry < 2: - time.sleep(0.05) - continue - else: - print(f"[{timetag}] [截图服务] [WARN] 缓存文件检查失败: {e},等待后台截图") - except ValueError as e: - print(f"[{timetag}] [截图服务] [WARN] 缓存文件检查异常: {e},等待后台截图") - break - else: - print(f"[{timetag}] [截图服务] [WARN] 缓存文件不存在,等待后台截图") - else: - print(f"[{timetag}] [截图服务] [WARN] 缓存已过期 (距离上次: {time_since_last*1000:.0f}ms > {self._cache_valid_duration*1000:.0f}ms),等待后台截图") - - # 缓存无效或强制刷新 - if force: - print(f"[{timetag}] [截图服务] 强制刷新,忽略缓存") - - # 等待后台截图完成 - if self._running: - wait_start = time.time() - time_since_last_before_wait = time.time() - self._last_screenshot_time - # 修复:添加边界检查 - if time_since_last_before_wait < 0: - time_since_last_before_wait = 0 - elif time_since_last_before_wait > 86400: - time_since_last_before_wait = 10.0 - print(f"[{timetag}] [截图服务] [WAIT] 缓存未命中,等待后台截图 (距离上次: {time_since_last_before_wait*1000:.0f}ms)") - - # 等待最多6秒,让后台线程完成截图(适应较慢的截图操作) - max_wait_time = 6.0 - while time.time() - wait_start < max_wait_time: - if self._last_screenshot_time > wait_start - 0.1: - # 截图已完成,验证文件完整性 - if self._screenshot_path and os.path.exists(self._screenshot_path): - try: - file_size = os.path.getsize(self._screenshot_path) - if file_size >= 1024: - with open(self._screenshot_path, 'rb') as f: - header = f.read(4) - if header == b'\\x89PNG': - # 验证文件尾(更宽松的验证) - read_size = min(50, file_size) - f.seek(-read_size, 2) - footer = f.read(read_size) - if b'IEND' in footer: - wait_elapsed = (time.time() - wait_start) * 1000 - total_elapsed = (time.time() - request_start) * 1000 - status = "[OK]" if self._last_success else "[FAIL]" - print(f"[{timetag}] [截图服务] {status} 后台截图完成,等待耗时: {wait_elapsed:.1f}ms,总耗时: {total_elapsed:.1f}ms,文件大小: {file_size/1024:.1f}KB") - return self._last_success - # 文件尾验证失败,继续等待 - # 文件太小或格式错误,继续等待 - except (OSError, IOError, ValueError): - # 文件验证失败,继续等待 - pass - time.sleep(0.1) - - # 等待超时 - wait_elapsed = (time.time() - wait_start) * 1000 - print(f"[{timetag}] [截图服务] [TIMEOUT] 等待超时 ({wait_elapsed:.1f}ms),回退到直接截图") - - # 如果后台服务未运行或等待超时,直接执行截图(禁用服务模式,避免递归) - direct_start = time.time() - result = self._screenshot_ops.get_screenshot(device_id, use_service=False) # type: ignore[arg-type] - direct_elapsed = (time.time() - direct_start) * 1000 - total_elapsed = (time.time() - request_start) * 1000 - status = "[OK]" if result else "[FAIL]" - print(f"[{timetag}] [截图服务] {status} 直接截图完成,耗时: {direct_elapsed:.0f}ms,总耗时: {total_elapsed:.1f}ms") - return result - - def is_running(self) -> bool: - """检查服务是否正在运行""" - return self._running - - def get_last_screenshot_time(self) -> float: - """获取最后一次截图的时间戳""" - return self._last_screenshot_time - - def get_cache_info(self) -> dict: - """获取缓存信息(用于调试)""" - return { - "running": self._running, - "device_id": self._current_device_id, - "last_screenshot_time": self._last_screenshot_time, - "interval": self._screenshot_interval, - "cache_valid_duration": self._cache_valid_duration, - "last_success": self._last_success, - } - - -def get_optimal_workers() -> int: - """根据CPU核心数获取最优线程数 - - 返回: - 推荐的线程数 - """ - cpu_count = os.cpu_count() or 4 - - # 针对12核CPU的优化配置 - if cpu_count >= 12: - return 10 # 12核:使用10个线程 - elif cpu_count >= 8: - return 8 # 8核:使用8个线程 - elif cpu_count >= 4: - return 6 # 4核:使用6个线程 - elif cpu_count >= 2: - return 3 # 2核:使用3个线程 - else: - return 2 # 单核:使用2个线程(I/O等待) -''' - -# 写入文件 -with open('operations/screenshot_service.py', 'w', encoding='utf-8') as f: - f.write(content) - -print('ScreenshotService file restored successfully')