From 90cbc95ee27d555cc18f5ba115e82da04ed6fd4c Mon Sep 17 00:00:00 2001 From: "hojin.jeong" Date: Mon, 25 Aug 2025 16:54:40 +0900 Subject: [PATCH] manual lotto policy sort func added --- lib/lotto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lotto.js b/lib/lotto.js index 5cd2739..df4651a 100644 --- a/lib/lotto.js +++ b/lib/lotto.js @@ -86,7 +86,7 @@ class Lotto { const requestParams = lotteryInputs.map((lotto, idx) => { return { genType: lotto === 'auto' ? '0' : '1', - arrGameChoiceNum: lotto === 'auto' ? null : lotto.map(num => String(num).padStart(2, 0)).join(','), + arrGameChoiceNum: lotto === 'auto' ? null : lotto.sort().map(num => String(num).padStart(2, 0)).join(','), alpabet: String.fromCharCode(65 + idx) } })