Compare commits

...
6 Commits
Author SHA1 Message Date
hojin.jeong 90cbc95ee2 manual lotto policy sort func added 2025-08-25 16:54:40 +09:00
horoli bccdee3ae4 gitignore update 2025-08-25 16:48:42 +09:00
hojin.jeong e5d59a836d config.json => config.json.sample 2025-08-25 16:41:26 +09:00
hojin.jeong da09a696ef Merge branch 'master' of https://git.mapside.kr/public/lotto_automation
# Conflicts:
#	config.json
2025-08-25 16:40:06 +09:00
hojin.jeong f900ef5039 config.json case bugfixe 2025-08-25 16:39:10 +09:00
mapside d226357f5f Update config.json 2025-08-25 07:30:59 +00:00
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -4,3 +4,4 @@ node_modules
test
yarn.lock
config.json
package-lock.json
+1 -1
View File
@@ -5,6 +5,6 @@
"ntfyToken": "TOKEN",
"buyLottoPolicy": [
"auto",
"1,2,3,4,5,6"
[1,2,3,4,5,6]
]
}
+1 -1
View File
@@ -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)
}
})