update winrate test

This commit is contained in:
littlefairy 2024-03-18 22:43:20 +08:00
parent c9609ffd01
commit 9972573772

View File

@ -3282,9 +3282,9 @@
return result return result
}, },
get_obfuscated_value(a) { get_obfuscated_value(a) {
var result = $.hashmap_str_str.h(0, a) var s = $.hashmap_str_str.h(0, a)
if (result == null) return "" if (s == null) return ""
return result return s
}, },
out_load_lan(a) { out_load_lan(a) {
J.lY(a, new LanData.load_lan()) J.lY(a, new LanData.load_lan())
@ -12363,7 +12363,7 @@
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)
//捕获胜率 //捕获胜率
if (p.current_count >= config[stage].count) { if (p.current_count >= config[stage].count) {
const { const {
@ -12373,8 +12373,11 @@
} = config[stage]; } = config[stage];
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)
resolve(true, [], winRate, p.current_count); resolve(false, [], winRate, p.current_count);
else if (stage === config.length - 1)
resolve(true, [], winRate);
stage++;
} }
async_goto = 1 async_goto = 1