@jetthai/cuora 1.1.373-dev-3 → 1.1.373-dev-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/api/game.js +4 -4
- package/src/machine/deposit/amb.js +1 -1
- package/src/machine/deposit/direct.js +1 -1
- package/src/machine/deposit/direct_cash.js +1 -1
- package/src/machine/deposit/float.js +1 -1
- package/src/machine/deposit/manual_cash.js +1 -1
- package/src/machine/deposit/vpay.js +1 -1
- package/src/machine/game_v2_1.js +1 -0
- package/src/machine/side_cash.js +3 -2
- package/src/machine/side_v2.js +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.373-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-4...v1.1.373-dev-5) (2025-08-22)
|
|
6
|
+
|
|
7
|
+
### [1.1.373-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-3...v1.1.373-dev-4) (2025-08-22)
|
|
8
|
+
|
|
5
9
|
### [1.1.373-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-2...v1.1.373-dev-3) (2025-08-22)
|
|
6
10
|
|
|
7
11
|
### [1.1.373-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-1...v1.1.373-dev-2) (2025-08-16)
|
package/package.json
CHANGED
package/src/api/game.js
CHANGED
|
@@ -57,10 +57,10 @@ export default {
|
|
|
57
57
|
url: 'game/history/options',
|
|
58
58
|
method: 'get',
|
|
59
59
|
}),
|
|
60
|
-
getListRoot: ({ timestamp } = {}) => ({
|
|
60
|
+
getListRoot: ({ timestamp, appSecret } = {}) => ({
|
|
61
61
|
url: 'game/list/v3/root',
|
|
62
62
|
method: 'get',
|
|
63
|
-
params: { timestamp },
|
|
63
|
+
params: { timestamp, appSecret },
|
|
64
64
|
}),
|
|
65
65
|
getListCategory: ({ categoryId, timestamp, index }) => ({
|
|
66
66
|
url: 'game/list/v3/category',
|
|
@@ -72,10 +72,10 @@ export default {
|
|
|
72
72
|
method: 'get',
|
|
73
73
|
params: { categoryId, timestamp, index, appSecret },
|
|
74
74
|
}),
|
|
75
|
-
getListCategoryByRange: ({ categoryId, timestamp, end }) => ({
|
|
75
|
+
getListCategoryByRange: ({ categoryId, timestamp, end, appSecret }) => ({
|
|
76
76
|
url: 'game/list/v3/categoryByRange',
|
|
77
77
|
method: 'get',
|
|
78
|
-
params: { categoryId, timestamp, end },
|
|
78
|
+
params: { categoryId, timestamp, end, appSecret },
|
|
79
79
|
}),
|
|
80
80
|
getListAdditionByRange: ({ categoryId, timestamp, end, appSecret }) => ({
|
|
81
81
|
url: 'game/list/v3/additionByRange',
|
|
@@ -63,7 +63,7 @@ export default function (request) {
|
|
|
63
63
|
houseAccountName: houseAccount.accountName,
|
|
64
64
|
houseAccountNumber: houseAccount.accountNumber,
|
|
65
65
|
houseBankName: houseAccount.bankName,
|
|
66
|
-
bankList,
|
|
66
|
+
bankList: bankList?.data ? bankList.data : bankList,
|
|
67
67
|
}
|
|
68
68
|
}),
|
|
69
69
|
},
|
|
@@ -119,7 +119,7 @@ export default function (request, context) {
|
|
|
119
119
|
}),
|
|
120
120
|
setBanks: assign((context, event) => {
|
|
121
121
|
const { selectedDirect, bankMap } = context
|
|
122
|
-
const userBanks = event.data
|
|
122
|
+
const userBanks = event.data?.data ? event.data.data : event.data
|
|
123
123
|
|
|
124
124
|
if (selectedDirect)
|
|
125
125
|
return {
|
|
@@ -150,7 +150,7 @@ export default function (request, context) {
|
|
|
150
150
|
setInitData: assign((context, event) => {
|
|
151
151
|
const { currentPayment, bankList, bindingPaymentInfo, processing } = event.data
|
|
152
152
|
const userBankLsit = bindingPaymentInfo.bankList || []
|
|
153
|
-
const allBankList = bankList
|
|
153
|
+
const allBankList = bankList?.data ? bankList.data : bankList
|
|
154
154
|
|
|
155
155
|
const houseBanks = currentPayment.banks.map((bank) => {
|
|
156
156
|
const foundBank = allBankList.find((item) => item.bankCode === bank.bankName)
|
package/src/machine/game_v2_1.js
CHANGED
package/src/machine/side_cash.js
CHANGED
|
@@ -2,6 +2,7 @@ import { assign, createMachine } from 'xstate'
|
|
|
2
2
|
import game from '../api/game.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
+
const { appSecret } = request.config
|
|
5
6
|
return createMachine(
|
|
6
7
|
{
|
|
7
8
|
id: 'side',
|
|
@@ -78,10 +79,10 @@ export default function (request) {
|
|
|
78
79
|
},
|
|
79
80
|
services: {
|
|
80
81
|
getMenu: async (context, event) => {
|
|
81
|
-
return await request.send(game.getListRoot())
|
|
82
|
+
return await request.send(game.getListRoot({ appSecret }))
|
|
82
83
|
},
|
|
83
84
|
fetchUpdateMenu: async (context, event) => {
|
|
84
|
-
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp }))
|
|
85
|
+
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp, appSecret }))
|
|
85
86
|
},
|
|
86
87
|
},
|
|
87
88
|
}
|
package/src/machine/side_v2.js
CHANGED
|
@@ -2,6 +2,7 @@ import { assign, createMachine } from 'xstate'
|
|
|
2
2
|
import game from '../api/game.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
+
const { appSecret } = request.config
|
|
5
6
|
return createMachine(
|
|
6
7
|
{
|
|
7
8
|
id: 'side',
|
|
@@ -160,10 +161,10 @@ export default function (request) {
|
|
|
160
161
|
},
|
|
161
162
|
services: {
|
|
162
163
|
getMenu: async (context, event) => {
|
|
163
|
-
return await request.send(game.getListRoot())
|
|
164
|
+
return await request.send(game.getListRoot({ appSecret }))
|
|
164
165
|
},
|
|
165
166
|
fetchUpdateMenu: async (context, event) => {
|
|
166
|
-
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp }))
|
|
167
|
+
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp, appSecret }))
|
|
167
168
|
},
|
|
168
169
|
},
|
|
169
170
|
}
|