Compare commits

..

No commits in common. "90cbc95ee27d555cc18f5ba115e82da04ed6fd4c" and "092df2986918d94b90993b78212238463d60b612" have entirely different histories.

3 changed files with 3 additions and 4 deletions

3
.gitignore vendored
View File

@ -3,5 +3,4 @@
node_modules
test
yarn.lock
config.json
package-lock.json
config.json

View File

@ -5,6 +5,6 @@
"ntfyToken": "TOKEN",
"buyLottoPolicy": [
"auto",
[1,2,3,4,5,6]
"1,2,3,4,5,6"
]
}

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.sort().map(num => String(num).padStart(2, 0)).join(','),
arrGameChoiceNum: lotto === 'auto' ? null : lotto.map(num => String(num).padStart(2, 0)).join(','),
alpabet: String.fromCharCode(65 + idx)
}
})