From 3a5562b5c0feb708de298d89acd132e26cd81ed0 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Mon, 18 Mar 2024 22:55:48 +0800 Subject: [PATCH] output --- node_run/static/md5.js | 3 +++ node_run/test.js | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/node_run/static/md5.js b/node_run/static/md5.js index 39800c3..5c31a8a 100644 --- a/node_run/static/md5.js +++ b/node_run/static/md5.js @@ -12363,6 +12363,8 @@ q = new T.aq(n, l) // 当前场次, 目标场次, 胜率 + output(p.current_count, p.target_count, p.win_count * 100 / p.current_count) + // debug 用, 留着吧 //捕获胜率 if (p.current_count >= config[stage].count) { @@ -12374,6 +12376,7 @@ var winRate = p.win_count * 100 / config[stage].count //if (winRate < score) 对于cqd需要多个号取胜率平均,不需要在这里判断 + resolve(true, [], winRate, p.current_count); } diff --git a/node_run/test.js b/node_run/test.js index a9e799e..708429a 100644 --- a/node_run/test.js +++ b/node_run/test.js @@ -52,13 +52,13 @@ async function test(str) { window.close(); }; window.output = (...message) => { - console.log('From the page:', message); + console.log('page:', message); }; } }); virtualConsole.on('log', (message) => { - console.log('From the page:', message); + console.log('page:', message); }); const result = await resolver @@ -67,5 +67,5 @@ async function test(str) { //str="!test!\n!\n\n11@qwerb\n\n1233"; -str = "!test!\n!\n\n11@qwerb\n\n1233"; +str = "!test!\n!\n\n一一唹咤嵀㴁@shenjack\n\n一一塄望烀㴁@shenjack"; test(str) \ No newline at end of file