output
This commit is contained in:
parent
7187815d00
commit
3a5562b5c0
@ -12363,6 +12363,8 @@
|
|||||||
q = new T.aq(n, l)
|
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) {
|
if (p.current_count >= config[stage].count) {
|
||||||
@ -12374,6 +12376,7 @@
|
|||||||
|
|
||||||
var winRate = p.win_count * 100 / config[stage].count
|
var winRate = p.win_count * 100 / config[stage].count
|
||||||
//if (winRate < score) 对于cqd需要多个号取胜率平均,不需要在这里判断
|
//if (winRate < score) 对于cqd需要多个号取胜率平均,不需要在这里判断
|
||||||
|
|
||||||
resolve(true, [], winRate, p.current_count);
|
resolve(true, [], winRate, p.current_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,13 +52,13 @@ async function test(str) {
|
|||||||
window.close();
|
window.close();
|
||||||
};
|
};
|
||||||
window.output = (...message) => {
|
window.output = (...message) => {
|
||||||
console.log('From the page:', message);
|
console.log('page:', message);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
virtualConsole.on('log', (message) => {
|
virtualConsole.on('log', (message) => {
|
||||||
console.log('From the page:', message);
|
console.log('page:', message);
|
||||||
});
|
});
|
||||||
|
|
||||||
const result = await resolver
|
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\n11@qwerb\n\n1233";
|
str = "!test!\n!\n\n一一唹咤嵀㴁@shenjack\n\n一一塄望烀㴁@shenjack";
|
||||||
test(str)
|
test(str)
|
Loading…
Reference in New Issue
Block a user