@jetthai/cuora 1.1.373-dev-2 → 1.1.373-dev-4
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 +6 -6
- 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 +6 -3
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-4](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-3...v1.1.373-dev-4) (2025-08-22)
|
|
6
|
+
|
|
7
|
+
### [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)
|
|
8
|
+
|
|
5
9
|
### [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)
|
|
6
10
|
|
|
7
11
|
### [1.1.373-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.373...v1.1.373-dev-1) (2025-08-15)
|
package/package.json
CHANGED
package/src/api/game.js
CHANGED
|
@@ -67,20 +67,20 @@ export default {
|
|
|
67
67
|
method: 'get',
|
|
68
68
|
params: { categoryId, timestamp, index },
|
|
69
69
|
}),
|
|
70
|
-
getListAddition: ({ categoryId, timestamp, index }) => ({
|
|
70
|
+
getListAddition: ({ categoryId, timestamp, index, appSecret }) => ({
|
|
71
71
|
url: 'game/list/v3/addition',
|
|
72
72
|
method: 'get',
|
|
73
|
-
params: { categoryId, timestamp, index },
|
|
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
|
-
getListAdditionByRange: ({ categoryId, timestamp, end }) => ({
|
|
80
|
+
getListAdditionByRange: ({ categoryId, timestamp, end, appSecret }) => ({
|
|
81
81
|
url: 'game/list/v3/additionByRange',
|
|
82
82
|
method: 'get',
|
|
83
|
-
params: { categoryId, timestamp, end },
|
|
83
|
+
params: { categoryId, timestamp, end, appSecret },
|
|
84
84
|
}),
|
|
85
85
|
getListMyFavorite: ({ timestamp } = {}) => ({
|
|
86
86
|
url: 'game/list/v3/myFavorite',
|
|
@@ -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
|
@@ -5,6 +5,7 @@ import { GAME_SEARCH } from '../util/constant.js'
|
|
|
5
5
|
|
|
6
6
|
// 對應 intersectionObserver 版本
|
|
7
7
|
export default function (request) {
|
|
8
|
+
const { appSecret } = request.config
|
|
8
9
|
return createMachine(
|
|
9
10
|
{
|
|
10
11
|
id: 'game',
|
|
@@ -515,7 +516,7 @@ export default function (request) {
|
|
|
515
516
|
})
|
|
516
517
|
return list.filter((item) => item.downLine.length > 0).slice(0, 6)
|
|
517
518
|
} else if (additionEnable) {
|
|
518
|
-
const param = { categoryId: room.categoryId, index }
|
|
519
|
+
const param = { categoryId: room.categoryId, index, appSecret }
|
|
519
520
|
requestChain = event.data.list.map((category, b) => {
|
|
520
521
|
return request
|
|
521
522
|
.send(
|
|
@@ -558,10 +559,10 @@ export default function (request) {
|
|
|
558
559
|
},
|
|
559
560
|
]
|
|
560
561
|
} else if (additionEnable) {
|
|
561
|
-
const param = { categoryId: room.categoryId, index }
|
|
562
|
+
const param = { categoryId: room.categoryId, index, appSecret }
|
|
562
563
|
return await Promise.all([request.send(api.getListCategory(param)), request.send(api.getListAddition(param))])
|
|
563
564
|
} else {
|
|
564
|
-
const param = { categoryId: room.categoryId, index }
|
|
565
|
+
const param = { categoryId: room.categoryId, index, appSecret }
|
|
565
566
|
return await Promise.all([request.send(api.getListCategory(param))])
|
|
566
567
|
}
|
|
567
568
|
},
|
|
@@ -578,6 +579,7 @@ export default function (request) {
|
|
|
578
579
|
categoryId: room.categoryId,
|
|
579
580
|
end: index,
|
|
580
581
|
timestamp: content.timestamp,
|
|
582
|
+
appSecret,
|
|
581
583
|
})
|
|
582
584
|
),
|
|
583
585
|
request.send(
|
|
@@ -585,6 +587,7 @@ export default function (request) {
|
|
|
585
587
|
categoryId: room.categoryId,
|
|
586
588
|
end: index,
|
|
587
589
|
timestamp: content.timestamp,
|
|
590
|
+
appSecret,
|
|
588
591
|
})
|
|
589
592
|
),
|
|
590
593
|
])
|