@jetthai/cuora 1.1.270-jackpot-1 → 1.1.270
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 +0 -2
- package/package.json +1 -1
- package/src/api/activity.js +0 -6
- package/src/machine/activity/activity_cash.js +3 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
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.270-jackpot-1](https://github.com/jetthai/cuora-module/compare/v1.1.270...v1.1.270-jackpot-1) (2024-05-16)
|
|
6
|
-
|
|
7
5
|
### [1.1.270](https://github.com/jetthai/cuora-module/compare/v1.1.269...v1.1.270) (2024-05-16)
|
|
8
6
|
|
|
9
7
|
### [1.1.269](https://github.com/jetthai/cuora-module/compare/v1.1.268...v1.1.269) (2024-05-15)
|
package/package.json
CHANGED
package/src/api/activity.js
CHANGED
|
@@ -6,12 +6,6 @@ export default {
|
|
|
6
6
|
params: { appSecret, include },
|
|
7
7
|
isPublic: true,
|
|
8
8
|
}),
|
|
9
|
-
getJackpotList: ({ appSecret }) => ({
|
|
10
|
-
url: 'activities/jackpot/list',
|
|
11
|
-
method: 'get',
|
|
12
|
-
params: { appSecret },
|
|
13
|
-
isPublic: true,
|
|
14
|
-
}),
|
|
15
9
|
getTournamentDetail: ({ activityNo, appSecret }) => ({
|
|
16
10
|
url: 'tournament/detail',
|
|
17
11
|
method: 'get',
|
|
@@ -13,7 +13,6 @@ export default function (request) {
|
|
|
13
13
|
activityList: [],
|
|
14
14
|
tournamentList: [],
|
|
15
15
|
promotionList: [],
|
|
16
|
-
jackpotList: [],
|
|
17
16
|
uidSite: '',
|
|
18
17
|
detailNeededActivityTypes: [29, 34],
|
|
19
18
|
activityDetailList: [],
|
|
@@ -24,7 +23,7 @@ export default function (request) {
|
|
|
24
23
|
src: 'fetchList',
|
|
25
24
|
onDone: {
|
|
26
25
|
target: 'checking',
|
|
27
|
-
actions: ['setActivityList', 'setTournamentList', 'setPromotionList'
|
|
26
|
+
actions: ['setActivityList', 'setTournamentList', 'setPromotionList'],
|
|
28
27
|
},
|
|
29
28
|
onError: {
|
|
30
29
|
target: 'pending',
|
|
@@ -97,12 +96,6 @@ export default function (request) {
|
|
|
97
96
|
promotionList,
|
|
98
97
|
}
|
|
99
98
|
}),
|
|
100
|
-
setJackpotList: assign((context, event) => {
|
|
101
|
-
const { jackpotList } = event.data
|
|
102
|
-
return {
|
|
103
|
-
jackpotList,
|
|
104
|
-
}
|
|
105
|
-
}),
|
|
106
99
|
setUnread: assign((context, event) => {
|
|
107
100
|
const { uidSite, activityNo, unread } = event.data
|
|
108
101
|
const list = JSON.parse(JSON.stringify(context.activityList))
|
|
@@ -139,13 +132,12 @@ export default function (request) {
|
|
|
139
132
|
services: {
|
|
140
133
|
fetchList: async (context, event) => {
|
|
141
134
|
const hasToken = request.getToken()
|
|
142
|
-
const [{ data }, promotionList
|
|
135
|
+
const [{ data }, promotionList] = await Promise.all([
|
|
143
136
|
request.send(activity.getActivityList({ appSecret })),
|
|
144
137
|
hasToken ? request.send(payment.getPromotionsList()) : [],
|
|
145
|
-
request.send(activity.getJackpotList({ appSecret })),
|
|
146
138
|
])
|
|
147
139
|
|
|
148
|
-
return { activityList: data, promotionList
|
|
140
|
+
return { activityList: data, promotionList }
|
|
149
141
|
},
|
|
150
142
|
fetchActivityDetailList: async (context, event) => {
|
|
151
143
|
await new Promise((resolve) => setTimeout(resolve, 1000)) // delay 1 second
|