@jetthai/cuora 1.1.373-dev-1 → 1.1.373-dev-3
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/auth.js +2 -2
- package/src/api/game.js +4 -4
- package/src/machine/deposit/deposit_fc.js +9 -2
- package/src/machine/deposit/direct.js +9 -2
- package/src/machine/deposit/direct_cash.js +9 -2
- package/src/machine/deposit/float.js +9 -2
- package/src/machine/deposit/loadcard_cash.js +9 -2
- package/src/machine/deposit/loadcard_vn.js +9 -2
- package/src/machine/deposit/manual_cash.js +9 -2
- package/src/machine/deposit/manual_vn.js +9 -2
- package/src/machine/deposit/qrcode_cash.js +9 -2
- package/src/machine/deposit/qrcode_v2.js +9 -2
- package/src/machine/deposit/virtual_bank_cash.js +9 -2
- package/src/machine/deposit/virtual_bank_vn.js +9 -2
- package/src/machine/deposit/vpay.js +9 -2
- package/src/machine/game_v2_1.js +5 -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-3](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-2...v1.1.373-dev-3) (2025-08-22)
|
|
6
|
+
|
|
7
|
+
### [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)
|
|
8
|
+
|
|
5
9
|
### [1.1.373-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.373...v1.1.373-dev-1) (2025-08-15)
|
|
6
10
|
|
|
7
11
|
### [1.1.373](https://github.com/jetthai/cuora-module/compare/v1.1.372...v1.1.373) (2025-08-13)
|
package/package.json
CHANGED
package/src/api/auth.js
CHANGED
|
@@ -54,10 +54,10 @@ export default {
|
|
|
54
54
|
method: 'post',
|
|
55
55
|
params: { provider, countryCode, phone, email },
|
|
56
56
|
}),
|
|
57
|
-
checkAccount: ({ account, nick_name, strategy }) => ({
|
|
57
|
+
checkAccount: ({ account, nick_name, strategy, appSecret }) => ({
|
|
58
58
|
url: 'checkAccount',
|
|
59
59
|
method: 'post',
|
|
60
|
-
params: { account, nick_name, strategy },
|
|
60
|
+
params: { account, nick_name, strategy, appSecret },
|
|
61
61
|
isPublic: true,
|
|
62
62
|
}),
|
|
63
63
|
}
|
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
75
|
getListCategoryByRange: ({ categoryId, timestamp, end }) => ({
|
|
76
76
|
url: 'game/list/v3/categoryByRange',
|
|
77
77
|
method: 'get',
|
|
78
78
|
params: { categoryId, timestamp, end },
|
|
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',
|
|
@@ -180,8 +180,15 @@ export default function (request) {
|
|
|
180
180
|
return properties
|
|
181
181
|
}),
|
|
182
182
|
setCalculatedResult: assign((context, event) => {
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
const { data } = event.data
|
|
184
|
+
if (data) {
|
|
185
|
+
return {
|
|
186
|
+
calculatedResult: data,
|
|
187
|
+
}
|
|
188
|
+
} else {
|
|
189
|
+
return {
|
|
190
|
+
calculatedResult: event.data,
|
|
191
|
+
}
|
|
185
192
|
}
|
|
186
193
|
}),
|
|
187
194
|
setSubmittedResult: assign((context, event) => {
|
|
@@ -220,8 +220,15 @@ export default function (request) {
|
|
|
220
220
|
}
|
|
221
221
|
}),
|
|
222
222
|
setCalculation: assign((context, event) => {
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
const { data } = event.data
|
|
224
|
+
if (data) {
|
|
225
|
+
return {
|
|
226
|
+
calculation: data,
|
|
227
|
+
}
|
|
228
|
+
} else {
|
|
229
|
+
return {
|
|
230
|
+
calculation: event.data,
|
|
231
|
+
}
|
|
225
232
|
}
|
|
226
233
|
}),
|
|
227
234
|
clearCalculation: assign((context, event) => {
|
|
@@ -144,8 +144,15 @@ export default function (request, context) {
|
|
|
144
144
|
}
|
|
145
145
|
}),
|
|
146
146
|
setCalculation: assign((context, event) => {
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
const { data } = event.data
|
|
148
|
+
if (data) {
|
|
149
|
+
return {
|
|
150
|
+
calculation: data,
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
return {
|
|
154
|
+
calculation: event.data,
|
|
155
|
+
}
|
|
149
156
|
}
|
|
150
157
|
}),
|
|
151
158
|
clearCalculation: assign((context, event) => {
|
|
@@ -292,8 +292,15 @@ export default function (request) {
|
|
|
292
292
|
}
|
|
293
293
|
}),
|
|
294
294
|
setCalculation: assign((context, event) => {
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
const { data } = event.data
|
|
296
|
+
if (data) {
|
|
297
|
+
return {
|
|
298
|
+
calculation: data,
|
|
299
|
+
}
|
|
300
|
+
} else {
|
|
301
|
+
return {
|
|
302
|
+
calculation: event.data,
|
|
303
|
+
}
|
|
297
304
|
}
|
|
298
305
|
}),
|
|
299
306
|
clearCalculation: assign((context, event) => {
|
|
@@ -151,8 +151,15 @@ export default function (request, context) {
|
|
|
151
151
|
return { selectedAmount: event.data }
|
|
152
152
|
}),
|
|
153
153
|
setCalculation: assign((context, event) => {
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
const { data } = event.data
|
|
155
|
+
if (data) {
|
|
156
|
+
return {
|
|
157
|
+
calculation: data,
|
|
158
|
+
}
|
|
159
|
+
} else {
|
|
160
|
+
return {
|
|
161
|
+
calculation: event.data,
|
|
162
|
+
}
|
|
156
163
|
}
|
|
157
164
|
}),
|
|
158
165
|
clearCalculation: assign((context, event) => {
|
|
@@ -265,8 +265,15 @@ export default function (request) {
|
|
|
265
265
|
return { selectedAmount: event.data }
|
|
266
266
|
}),
|
|
267
267
|
setCalculation: assign((context, event) => {
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
const { data } = event.data
|
|
269
|
+
if (data) {
|
|
270
|
+
return {
|
|
271
|
+
calculation: data,
|
|
272
|
+
}
|
|
273
|
+
} else {
|
|
274
|
+
return {
|
|
275
|
+
calculation: event.data,
|
|
276
|
+
}
|
|
270
277
|
}
|
|
271
278
|
}),
|
|
272
279
|
clearCalculation: assign((context, event) => {
|
|
@@ -200,8 +200,15 @@ export default function (request, context) {
|
|
|
200
200
|
return { selectedAmount: event.data }
|
|
201
201
|
}),
|
|
202
202
|
setCalculation: assign((context, event) => {
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
const { data } = event.data
|
|
204
|
+
if (data) {
|
|
205
|
+
return {
|
|
206
|
+
calculation: data,
|
|
207
|
+
}
|
|
208
|
+
} else {
|
|
209
|
+
return {
|
|
210
|
+
calculation: event.data,
|
|
211
|
+
}
|
|
205
212
|
}
|
|
206
213
|
}),
|
|
207
214
|
setProcessing: assign((context, event) => {
|
|
@@ -291,8 +291,15 @@ export default function (request) {
|
|
|
291
291
|
}
|
|
292
292
|
}),
|
|
293
293
|
setCalculation: assign((context, event) => {
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
const { data } = event.data
|
|
295
|
+
if (data) {
|
|
296
|
+
return {
|
|
297
|
+
calculation: data,
|
|
298
|
+
}
|
|
299
|
+
} else {
|
|
300
|
+
return {
|
|
301
|
+
calculation: event.data,
|
|
302
|
+
}
|
|
296
303
|
}
|
|
297
304
|
}),
|
|
298
305
|
setProcessing: assign((context, event) => {
|
|
@@ -170,8 +170,15 @@ export default function (request, context) {
|
|
|
170
170
|
return { selectedAmount: event.data }
|
|
171
171
|
}),
|
|
172
172
|
setCalculation: assign((context, event) => {
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
const { data } = event.data
|
|
174
|
+
if (data) {
|
|
175
|
+
return {
|
|
176
|
+
calculation: data,
|
|
177
|
+
}
|
|
178
|
+
} else {
|
|
179
|
+
return {
|
|
180
|
+
calculation: event.data,
|
|
181
|
+
}
|
|
175
182
|
}
|
|
176
183
|
}),
|
|
177
184
|
clearCalculation: assign((context, event) => {
|
|
@@ -260,8 +260,15 @@ export default function (request) {
|
|
|
260
260
|
return { selectedAmount: event.data }
|
|
261
261
|
}),
|
|
262
262
|
setCalculation: assign((context, event) => {
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
const { data } = event.data
|
|
264
|
+
if (data) {
|
|
265
|
+
return {
|
|
266
|
+
calculation: data,
|
|
267
|
+
}
|
|
268
|
+
} else {
|
|
269
|
+
return {
|
|
270
|
+
calculation: event.data,
|
|
271
|
+
}
|
|
265
272
|
}
|
|
266
273
|
}),
|
|
267
274
|
clearCalculation: assign((context, event) => {
|
|
@@ -128,8 +128,15 @@ export default function (request, context) {
|
|
|
128
128
|
return { selectedAmount: event.data }
|
|
129
129
|
}),
|
|
130
130
|
setCalculation: assign((context, event) => {
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
const { data } = event.data
|
|
132
|
+
if (data) {
|
|
133
|
+
return {
|
|
134
|
+
calculation: data,
|
|
135
|
+
}
|
|
136
|
+
} else {
|
|
137
|
+
return {
|
|
138
|
+
calculation: event.data,
|
|
139
|
+
}
|
|
133
140
|
}
|
|
134
141
|
}),
|
|
135
142
|
setProcessing: assign((context, event) => {
|
|
@@ -190,8 +190,15 @@ export default function (request) {
|
|
|
190
190
|
}
|
|
191
191
|
}),
|
|
192
192
|
setCalculation: assign((context, event) => {
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
const { data } = event.data
|
|
194
|
+
if (data) {
|
|
195
|
+
return {
|
|
196
|
+
calculation: data,
|
|
197
|
+
}
|
|
198
|
+
} else {
|
|
199
|
+
return {
|
|
200
|
+
calculation: event.data,
|
|
201
|
+
}
|
|
195
202
|
}
|
|
196
203
|
}),
|
|
197
204
|
setProcessing: assign((context, event) => {
|
|
@@ -287,8 +287,15 @@ export default function (request) {
|
|
|
287
287
|
return { amount: event.data }
|
|
288
288
|
}),
|
|
289
289
|
setCalculation: assign((context, event) => {
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
const { data } = event.data
|
|
291
|
+
if (data) {
|
|
292
|
+
return {
|
|
293
|
+
calculation: data,
|
|
294
|
+
}
|
|
295
|
+
} else {
|
|
296
|
+
return {
|
|
297
|
+
calculation: event.data,
|
|
298
|
+
}
|
|
292
299
|
}
|
|
293
300
|
}),
|
|
294
301
|
clearCalculation: assign((context, event) => {
|
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
|
},
|
|
@@ -585,6 +586,7 @@ export default function (request) {
|
|
|
585
586
|
categoryId: room.categoryId,
|
|
586
587
|
end: index,
|
|
587
588
|
timestamp: content.timestamp,
|
|
589
|
+
appSecret,
|
|
588
590
|
})
|
|
589
591
|
),
|
|
590
592
|
])
|