This commit is contained in:
shenjack 2024-05-10 19:36:48 +08:00
parent 9b96c69bbe
commit fdd5e03322
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ function wrap_any(names, round) {
// } else if ('score' in result) { // } else if ('score' in result) {
} }
else { else {
win_rate_2 = (result.score / round * 100).toFixed(2); win_rate_2 = (result.score * 100 / round).toFixed(2);
output_str_2 = "\u5206\u6570:|".concat(win_rate_2, "%|(").concat(round, "\u8F6E)"); output_str_2 = "\u5206\u6570:|".concat(win_rate_2, "%|(").concat(round, "\u8F6E)");
if (round > 1000) { if (round > 1000) {
output_datas_2 = []; output_datas_2 = [];

View File

@ -167,7 +167,7 @@ async function wrap_any(names: string, round: number): Promise<string> {
// } else if ('score' in result) { // } else if ('score' in result) {
} else { } else {
// 分数结果其实还是个胜率, 不过需要 * 100 // 分数结果其实还是个胜率, 不过需要 * 100
const win_rate = (result.score / round * 100).toFixed(2); const win_rate = (result.score * 100 / round).toFixed(2);
let output_str = `分数:|${win_rate}%|(${round}轮)`; let output_str = `分数:|${win_rate}%|(${round}轮)`;
if (round > 1000) { if (round > 1000) {
// 把所有要找的数据拿出来 // 把所有要找的数据拿出来