Compare commits
6 Commits
092df29869
...
90cbc95ee2
| Author | SHA1 | Date |
|---|---|---|
|
|
90cbc95ee2 | |
|
|
bccdee3ae4 | |
|
|
e5d59a836d | |
|
|
da09a696ef | |
|
|
f900ef5039 | |
|
|
d226357f5f |
|
|
@ -4,3 +4,4 @@ node_modules
|
||||||
test
|
test
|
||||||
yarn.lock
|
yarn.lock
|
||||||
config.json
|
config.json
|
||||||
|
package-lock.json
|
||||||
|
|
@ -5,6 +5,6 @@
|
||||||
"ntfyToken": "TOKEN",
|
"ntfyToken": "TOKEN",
|
||||||
"buyLottoPolicy": [
|
"buyLottoPolicy": [
|
||||||
"auto",
|
"auto",
|
||||||
"1,2,3,4,5,6"
|
[1,2,3,4,5,6]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -86,7 +86,7 @@ class Lotto {
|
||||||
const requestParams = lotteryInputs.map((lotto, idx) => {
|
const requestParams = lotteryInputs.map((lotto, idx) => {
|
||||||
return {
|
return {
|
||||||
genType: lotto === 'auto' ? '0' : '1',
|
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)
|
alpabet: String.fromCharCode(65 + idx)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue