@jetthai/cuora 1.1.188 → 1.1.190-bigwin
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
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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.190-bigwin](https://github.com/jetthai/cuora-module/compare/v1.1.190...v1.1.190-bigwin) (2023-10-17)
|
|
6
|
+
|
|
7
|
+
### [1.1.190](https://github.com/jetthai/cuora-module/compare/v1.1.189...v1.1.190) (2023-10-17)
|
|
8
|
+
|
|
9
|
+
### [1.1.189](https://github.com/jetthai/cuora-module/compare/v1.1.188...v1.1.189) (2023-10-17)
|
|
10
|
+
|
|
5
11
|
### [1.1.188](https://github.com/jetthai/cuora-module/compare/v1.1.187...v1.1.188) (2023-10-06)
|
|
6
12
|
|
|
7
13
|
### [1.1.187](https://github.com/jetthai/cuora-module/compare/v1.1.186...v1.1.187) (2023-10-03)
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -180,4 +180,5 @@ export default {
|
|
|
180
180
|
params: { promotionsNo },
|
|
181
181
|
}),
|
|
182
182
|
getPendingOrder: ({ transferType }) => ({ url: 'payment/v2/pendingOrder', method: 'post', params: { transferType } }),
|
|
183
|
+
withdrawCheck: () => ({ url: `payment/v2/withdrawCheck`, method: 'post' }),
|
|
183
184
|
}
|
package/src/machine/game_v2_1.js
CHANGED
|
@@ -42,6 +42,8 @@ export default function (request) {
|
|
|
42
42
|
lang: 'en_US',
|
|
43
43
|
isMobile: new UAParser().getResult().device.type,
|
|
44
44
|
gameURL: null,
|
|
45
|
+
gameToken: null,
|
|
46
|
+
gameHtml: null,
|
|
45
47
|
...oldContext,
|
|
46
48
|
},
|
|
47
49
|
states: {
|
|
@@ -335,10 +337,10 @@ export default function (request) {
|
|
|
335
337
|
return event.data.type
|
|
336
338
|
},
|
|
337
339
|
gameToken: (context, event) => {
|
|
338
|
-
return event.data.
|
|
340
|
+
return event.data.gameToken
|
|
339
341
|
},
|
|
340
|
-
|
|
341
|
-
return event.data.
|
|
342
|
+
gameHtml: (context, event) => {
|
|
343
|
+
return event.data.gameHtml
|
|
342
344
|
},
|
|
343
345
|
gameURL: (context, event) => {
|
|
344
346
|
return event.data.gameURL
|
|
@@ -483,8 +485,8 @@ export default function (request) {
|
|
|
483
485
|
lang,
|
|
484
486
|
return_url: returnProviders.includes(providerId) ? `${window.location.origin}${context.base}return` : window.location.href, // For providers to return.
|
|
485
487
|
}
|
|
486
|
-
const { type, redirect_url,
|
|
487
|
-
return { type,
|
|
488
|
+
const { type, redirect_url, gameToken, gameHtml } = await request.send(api.playGame(params))
|
|
489
|
+
return { type, gameToken, gameHtml, gameURL: redirect_url }
|
|
488
490
|
},
|
|
489
491
|
disconnectGame: async (context, event) => {
|
|
490
492
|
const uid_site = event.data
|
|
@@ -11,6 +11,7 @@ export default function (request) {
|
|
|
11
11
|
tick: 6000,
|
|
12
12
|
bigWinList: [],
|
|
13
13
|
maxBetList: [],
|
|
14
|
+
withdrawList: [],
|
|
14
15
|
},
|
|
15
16
|
states: {
|
|
16
17
|
fetching: {
|
|
@@ -37,10 +38,11 @@ export default function (request) {
|
|
|
37
38
|
{
|
|
38
39
|
actions: {
|
|
39
40
|
setHonorBoardList: assign((context, event) => {
|
|
40
|
-
const { bigWinList = [], maxBetList = [] } = event.data
|
|
41
|
+
const { bigWinList = [], maxBetList = [], withdrawList = [] } = event.data
|
|
41
42
|
return {
|
|
42
43
|
bigWinList,
|
|
43
44
|
maxBetList,
|
|
45
|
+
withdrawList,
|
|
44
46
|
}
|
|
45
47
|
}),
|
|
46
48
|
},
|