@jetthai/cuora 1.1.375-qa-2 → 1.1.375
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 -24
- package/package.json +1 -1
- package/src/api/activity.js +2 -3
- package/src/api/auth.js +2 -2
- package/src/api/common.js +1 -1
- package/src/api/game.js +12 -12
- package/src/api/payment.js +5 -5
- package/src/api/ranking.js +6 -6
- package/src/api/user.js +9 -14
- package/src/machine/common.js +3 -2
- package/src/machine/deposit/amb.js +1 -1
- package/src/machine/deposit/crypto_bank.js +2 -10
- package/src/machine/deposit/crypto_bank_cash.js +2 -10
- package/src/machine/deposit/crypto_way.js +2 -10
- package/src/machine/deposit/crypto_way_cash.js +2 -10
- package/src/machine/deposit/deposit_fc.js +3 -11
- package/src/machine/deposit/direct.js +4 -12
- package/src/machine/deposit/direct_cash.js +4 -12
- package/src/machine/deposit/float.js +4 -12
- package/src/machine/deposit/loadcard_cash.js +3 -11
- package/src/machine/deposit/loadcard_vn.js +3 -11
- package/src/machine/deposit/manual_cash.js +4 -12
- package/src/machine/deposit/manual_vn.js +3 -11
- package/src/machine/deposit/qrcode_cash.js +3 -11
- package/src/machine/deposit/qrcode_v2.js +3 -11
- package/src/machine/deposit/virtual_bank_cash.js +3 -11
- package/src/machine/deposit/virtual_bank_vn.js +3 -11
- package/src/machine/deposit/vpay.js +4 -12
- package/src/machine/game_replay.js +2 -2
- package/src/machine/game_search_cash.js +4 -4
- package/src/machine/game_search_v2.js +9 -9
- package/src/machine/game_v2_1.js +3 -9
- package/src/machine/honor_board_cash.js +1 -1
- package/src/machine/ranking.js +3 -4
- package/src/machine/side_cash.js +2 -3
- package/src/machine/side_v2.js +2 -3
- package/src/machine/user_reset_password.js +4 -5
- package/src/machine/vip_table.js +4 -11
- package/src/machine/withdraw/withdraw_crypto_cash.js +2 -10
- package/src/machine/withdraw/withdraw_manual.js +2 -10
- package/src/request/request.js +5 -201
|
@@ -291,16 +291,8 @@ export default function (request) {
|
|
|
291
291
|
}
|
|
292
292
|
}),
|
|
293
293
|
setCalculation: assign((context, event) => {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
if (data) {
|
|
297
|
-
return {
|
|
298
|
-
calculation: data,
|
|
299
|
-
}
|
|
300
|
-
} else {
|
|
301
|
-
return {
|
|
302
|
-
calculation: event.data,
|
|
303
|
-
}
|
|
294
|
+
return {
|
|
295
|
+
calculation: event.data,
|
|
304
296
|
}
|
|
305
297
|
}),
|
|
306
298
|
setProcessing: assign((context, event) => {
|
|
@@ -410,7 +402,7 @@ export default function (request) {
|
|
|
410
402
|
return await request.send(
|
|
411
403
|
payment.getDepositExpectedResult({
|
|
412
404
|
method,
|
|
413
|
-
amount
|
|
405
|
+
amount,
|
|
414
406
|
promotionsNo: promotion?.activityNo,
|
|
415
407
|
})
|
|
416
408
|
)
|
|
@@ -170,16 +170,8 @@ export default function (request, context) {
|
|
|
170
170
|
return { selectedAmount: event.data }
|
|
171
171
|
}),
|
|
172
172
|
setCalculation: assign((context, event) => {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
if (data) {
|
|
176
|
-
return {
|
|
177
|
-
calculation: data,
|
|
178
|
-
}
|
|
179
|
-
} else {
|
|
180
|
-
return {
|
|
181
|
-
calculation: event.data,
|
|
182
|
-
}
|
|
173
|
+
return {
|
|
174
|
+
calculation: event.data,
|
|
183
175
|
}
|
|
184
176
|
}),
|
|
185
177
|
clearCalculation: assign((context, event) => {
|
|
@@ -204,7 +196,7 @@ export default function (request, context) {
|
|
|
204
196
|
return await request.send(
|
|
205
197
|
payment.getDepositExpectedResult({
|
|
206
198
|
method: selectedQrcode.method,
|
|
207
|
-
amount:
|
|
199
|
+
amount: selectedAmount,
|
|
208
200
|
promotionsNo: promotion?.promotionsNo,
|
|
209
201
|
})
|
|
210
202
|
)
|
|
@@ -260,16 +260,8 @@ export default function (request) {
|
|
|
260
260
|
return { selectedAmount: event.data }
|
|
261
261
|
}),
|
|
262
262
|
setCalculation: assign((context, event) => {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
if (data) {
|
|
266
|
-
return {
|
|
267
|
-
calculation: data,
|
|
268
|
-
}
|
|
269
|
-
} else {
|
|
270
|
-
return {
|
|
271
|
-
calculation: event.data,
|
|
272
|
-
}
|
|
263
|
+
return {
|
|
264
|
+
calculation: event.data,
|
|
273
265
|
}
|
|
274
266
|
}),
|
|
275
267
|
clearCalculation: assign((context, event) => {
|
|
@@ -317,7 +309,7 @@ export default function (request) {
|
|
|
317
309
|
return await request.send(
|
|
318
310
|
payment.getDepositExpectedResult({
|
|
319
311
|
method: currentMethod,
|
|
320
|
-
amount:
|
|
312
|
+
amount: selectedAmount,
|
|
321
313
|
promotionsNo: promotion?.activityNo,
|
|
322
314
|
})
|
|
323
315
|
)
|
|
@@ -128,16 +128,8 @@ export default function (request, context) {
|
|
|
128
128
|
return { selectedAmount: event.data }
|
|
129
129
|
}),
|
|
130
130
|
setCalculation: assign((context, event) => {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (data) {
|
|
134
|
-
return {
|
|
135
|
-
calculation: data,
|
|
136
|
-
}
|
|
137
|
-
} else {
|
|
138
|
-
return {
|
|
139
|
-
calculation: event.data,
|
|
140
|
-
}
|
|
131
|
+
return {
|
|
132
|
+
calculation: event.data,
|
|
141
133
|
}
|
|
142
134
|
}),
|
|
143
135
|
setProcessing: assign((context, event) => {
|
|
@@ -187,7 +179,7 @@ export default function (request, context) {
|
|
|
187
179
|
return await request.send(
|
|
188
180
|
payment.getDepositExpectedResult({
|
|
189
181
|
method,
|
|
190
|
-
amount:
|
|
182
|
+
amount: selectedAmount,
|
|
191
183
|
promotionsNo: promotion?.promotionsNo,
|
|
192
184
|
})
|
|
193
185
|
)
|
|
@@ -190,16 +190,8 @@ export default function (request) {
|
|
|
190
190
|
}
|
|
191
191
|
}),
|
|
192
192
|
setCalculation: assign((context, event) => {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
if (data) {
|
|
196
|
-
return {
|
|
197
|
-
calculation: data,
|
|
198
|
-
}
|
|
199
|
-
} else {
|
|
200
|
-
return {
|
|
201
|
-
calculation: event.data,
|
|
202
|
-
}
|
|
193
|
+
return {
|
|
194
|
+
calculation: event.data,
|
|
203
195
|
}
|
|
204
196
|
}),
|
|
205
197
|
setProcessing: assign((context, event) => {
|
|
@@ -247,7 +239,7 @@ export default function (request) {
|
|
|
247
239
|
return await request.send(
|
|
248
240
|
payment.getDepositExpectedResult({
|
|
249
241
|
method,
|
|
250
|
-
amount
|
|
242
|
+
amount,
|
|
251
243
|
promotionsNo: promotion?.activityNo,
|
|
252
244
|
})
|
|
253
245
|
)
|
|
@@ -267,7 +267,7 @@ export default function (request) {
|
|
|
267
267
|
options: optional,
|
|
268
268
|
minimum,
|
|
269
269
|
maximum,
|
|
270
|
-
bankList
|
|
270
|
+
bankList,
|
|
271
271
|
grandTotalEnable,
|
|
272
272
|
}
|
|
273
273
|
}),
|
|
@@ -287,16 +287,8 @@ export default function (request) {
|
|
|
287
287
|
return { amount: event.data }
|
|
288
288
|
}),
|
|
289
289
|
setCalculation: assign((context, event) => {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
if (data) {
|
|
293
|
-
return {
|
|
294
|
-
calculation: data,
|
|
295
|
-
}
|
|
296
|
-
} else {
|
|
297
|
-
return {
|
|
298
|
-
calculation: event.data,
|
|
299
|
-
}
|
|
290
|
+
return {
|
|
291
|
+
calculation: event.data,
|
|
300
292
|
}
|
|
301
293
|
}),
|
|
302
294
|
clearCalculation: assign((context, event) => {
|
|
@@ -356,7 +348,7 @@ export default function (request) {
|
|
|
356
348
|
return await request.send(
|
|
357
349
|
payment.getDepositExpectedResult({
|
|
358
350
|
method,
|
|
359
|
-
amount
|
|
351
|
+
amount,
|
|
360
352
|
promotionsNo: promotion?.activityNo,
|
|
361
353
|
})
|
|
362
354
|
)
|
|
@@ -2,7 +2,7 @@ import { assign, createMachine } from 'xstate'
|
|
|
2
2
|
import game from '../api/game.js'
|
|
3
3
|
|
|
4
4
|
export default function (request, context) {
|
|
5
|
-
const { appSecret } = request.config
|
|
5
|
+
// const { appSecret } = request.config
|
|
6
6
|
const { providerId, seqNo, lang } = context
|
|
7
7
|
return createMachine(
|
|
8
8
|
{
|
|
@@ -38,7 +38,7 @@ export default function (request, context) {
|
|
|
38
38
|
services: {
|
|
39
39
|
// 取得遊戲重播資訊
|
|
40
40
|
fetchGameReplayInfo: async (context, event) => {
|
|
41
|
-
return await request.send(game.getGameReplayInfo({ providerId, seqNo, lang
|
|
41
|
+
return await request.send(game.getGameReplayInfo({ providerId, seqNo, lang }))
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
}
|
|
@@ -27,9 +27,9 @@ export default function (request) {
|
|
|
27
27
|
recentlyGame: [],
|
|
28
28
|
youMayLike: [],
|
|
29
29
|
selectedType: null,
|
|
30
|
-
isYouMayLike:
|
|
31
|
-
isRecentlyGame:
|
|
32
|
-
isRecentlySearch:
|
|
30
|
+
isYouMayLike: null,
|
|
31
|
+
isRecentlyGame: null,
|
|
32
|
+
isRecentlySearch: null,
|
|
33
33
|
},
|
|
34
34
|
states: {
|
|
35
35
|
init: {
|
|
@@ -388,7 +388,7 @@ export default function (request) {
|
|
|
388
388
|
sendMayLikeTrace: async (context, event) => {
|
|
389
389
|
return await request.send(
|
|
390
390
|
game.setGameSearchTrace({
|
|
391
|
-
isYouMayLike:
|
|
391
|
+
isYouMayLike: 1,
|
|
392
392
|
})
|
|
393
393
|
)
|
|
394
394
|
},
|
|
@@ -21,9 +21,9 @@ export default function (request) {
|
|
|
21
21
|
click: null,
|
|
22
22
|
clickDefault: null,
|
|
23
23
|
traceId: null,
|
|
24
|
-
isYouMayLike:
|
|
25
|
-
isRecentlyGame:
|
|
26
|
-
isRecentlySearch:
|
|
24
|
+
isYouMayLike: null,
|
|
25
|
+
isRecentlyGame: null,
|
|
26
|
+
isRecentlySearch: null,
|
|
27
27
|
gameCode: null,
|
|
28
28
|
lang: 'en-US',
|
|
29
29
|
},
|
|
@@ -119,9 +119,9 @@ export default function (request) {
|
|
|
119
119
|
data: {
|
|
120
120
|
tagId: context.tagList[0]?.id,
|
|
121
121
|
traceData: {
|
|
122
|
-
isYouMayLike:
|
|
123
|
-
isRecentlyGame:
|
|
124
|
-
isRecentlySearch:
|
|
122
|
+
isYouMayLike: null,
|
|
123
|
+
isRecentlyGame: null,
|
|
124
|
+
isRecentlySearch: null,
|
|
125
125
|
},
|
|
126
126
|
},
|
|
127
127
|
})),
|
|
@@ -319,9 +319,9 @@ export default function (request) {
|
|
|
319
319
|
tagIndex: null,
|
|
320
320
|
gameCode: null,
|
|
321
321
|
gameCodeIndex: null,
|
|
322
|
-
isYouMayLike:
|
|
323
|
-
isRecentlyGame:
|
|
324
|
-
isRecentlySearch:
|
|
322
|
+
isYouMayLike: null,
|
|
323
|
+
isRecentlyGame: null,
|
|
324
|
+
isRecentlySearch: null,
|
|
325
325
|
query: context.keyword,
|
|
326
326
|
click: null,
|
|
327
327
|
clickDefault: null,
|
package/src/machine/game_v2_1.js
CHANGED
|
@@ -5,7 +5,6 @@ import { GAME_SEARCH } from '../util/constant.js'
|
|
|
5
5
|
|
|
6
6
|
// 對應 intersectionObserver 版本
|
|
7
7
|
export default function (request) {
|
|
8
|
-
const { appSecret } = request.config
|
|
9
8
|
return createMachine(
|
|
10
9
|
{
|
|
11
10
|
id: 'game',
|
|
@@ -516,14 +515,13 @@ export default function (request) {
|
|
|
516
515
|
})
|
|
517
516
|
return list.filter((item) => item.downLine.length > 0).slice(0, 6)
|
|
518
517
|
} else if (additionEnable) {
|
|
519
|
-
const param = { categoryId: room.categoryId, index
|
|
518
|
+
const param = { categoryId: room.categoryId, index }
|
|
520
519
|
requestChain = event.data.list.map((category, b) => {
|
|
521
520
|
return request
|
|
522
521
|
.send(
|
|
523
522
|
api.getListCategory({
|
|
524
523
|
categoryId: category.id,
|
|
525
524
|
index: 0,
|
|
526
|
-
appSecret,
|
|
527
525
|
})
|
|
528
526
|
)
|
|
529
527
|
.then((res) => Object.assign({ downLine: res.data.filter((item) => item.isGame).slice(0, 20) }, category))
|
|
@@ -537,7 +535,6 @@ export default function (request) {
|
|
|
537
535
|
api.getListCategory({
|
|
538
536
|
categoryId: category.id,
|
|
539
537
|
index: 0,
|
|
540
|
-
appSecret,
|
|
541
538
|
})
|
|
542
539
|
)
|
|
543
540
|
.then((res) => Object.assign({ downLine: res.data.filter((item) => item.isGame).slice(0, 20) }, category))
|
|
@@ -561,10 +558,10 @@ export default function (request) {
|
|
|
561
558
|
},
|
|
562
559
|
]
|
|
563
560
|
} else if (additionEnable) {
|
|
564
|
-
const param = { categoryId: room.categoryId, index
|
|
561
|
+
const param = { categoryId: room.categoryId, index }
|
|
565
562
|
return await Promise.all([request.send(api.getListCategory(param)), request.send(api.getListAddition(param))])
|
|
566
563
|
} else {
|
|
567
|
-
const param = { categoryId: room.categoryId, index
|
|
564
|
+
const param = { categoryId: room.categoryId, index }
|
|
568
565
|
return await Promise.all([request.send(api.getListCategory(param))])
|
|
569
566
|
}
|
|
570
567
|
},
|
|
@@ -581,7 +578,6 @@ export default function (request) {
|
|
|
581
578
|
categoryId: room.categoryId,
|
|
582
579
|
end: index,
|
|
583
580
|
timestamp: content.timestamp,
|
|
584
|
-
appSecret,
|
|
585
581
|
})
|
|
586
582
|
),
|
|
587
583
|
request.send(
|
|
@@ -589,7 +585,6 @@ export default function (request) {
|
|
|
589
585
|
categoryId: room.categoryId,
|
|
590
586
|
end: index,
|
|
591
587
|
timestamp: content.timestamp,
|
|
592
|
-
appSecret,
|
|
593
588
|
})
|
|
594
589
|
),
|
|
595
590
|
])
|
|
@@ -636,7 +631,6 @@ export default function (request) {
|
|
|
636
631
|
mapping_id: mappingId,
|
|
637
632
|
is_mobile: isMobile === 'mobile' ? 'y' : null,
|
|
638
633
|
lang,
|
|
639
|
-
appSecret,
|
|
640
634
|
}
|
|
641
635
|
const { type, redirect_url, gameToken, gameHtml, is_demo } = await request.send(api.demoGame(params))
|
|
642
636
|
// 將 is_demo 設置到 context.game.isDemo
|
|
@@ -80,7 +80,7 @@ export default function (request) {
|
|
|
80
80
|
},
|
|
81
81
|
services: {
|
|
82
82
|
fetchHonorBoardList: async (context, event) => {
|
|
83
|
-
const { data } = await request.send(activity.getHonorBroadcast(
|
|
83
|
+
const { data } = await request.send(activity.getHonorBroadcast(appSecret))
|
|
84
84
|
return data
|
|
85
85
|
},
|
|
86
86
|
},
|
package/src/machine/ranking.js
CHANGED
|
@@ -2,7 +2,6 @@ import { createMachine, assign } from 'xstate'
|
|
|
2
2
|
import ranking from '../api/ranking.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
-
const { appSecret } = request.config
|
|
6
5
|
const cycleMapping = ['DAILY', 'WEEKLY', 'MONTHLY']
|
|
7
6
|
const limit = { DAILY: 56, WEEKLY: 8, MONTHLY: 2, ALL: 2 }
|
|
8
7
|
|
|
@@ -195,12 +194,12 @@ export default function (request) {
|
|
|
195
194
|
services: {
|
|
196
195
|
fetchTournament: async (context) => {
|
|
197
196
|
const { activityNo, cycle, round, site } = context
|
|
198
|
-
const { data } = await request.send(ranking.getTournament({ activityNo, cycle, round, site
|
|
197
|
+
const { data } = await request.send(ranking.getTournament({ activityNo, cycle, round, site }))
|
|
199
198
|
return data
|
|
200
199
|
},
|
|
201
200
|
fetchRankingOptions: async (context) => {
|
|
202
201
|
const { activityNo } = context
|
|
203
|
-
const { data } = await request.send(ranking.getRankingOptions({ activityNo
|
|
202
|
+
const { data } = await request.send(ranking.getRankingOptions({ activityNo }))
|
|
204
203
|
return data
|
|
205
204
|
},
|
|
206
205
|
fetchRankingDetail: async (context, event) => {
|
|
@@ -210,7 +209,7 @@ export default function (request) {
|
|
|
210
209
|
},
|
|
211
210
|
fetchRankingGames: async (context) => {
|
|
212
211
|
const { activityNo } = context
|
|
213
|
-
const { data } = await request.send(ranking.getRankingGames({ activityNo
|
|
212
|
+
const { data } = await request.send(ranking.getRankingGames({ activityNo }))
|
|
214
213
|
return data
|
|
215
214
|
},
|
|
216
215
|
},
|
package/src/machine/side_cash.js
CHANGED
|
@@ -2,7 +2,6 @@ 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
|
|
6
5
|
return createMachine(
|
|
7
6
|
{
|
|
8
7
|
id: 'side',
|
|
@@ -79,10 +78,10 @@ export default function (request) {
|
|
|
79
78
|
},
|
|
80
79
|
services: {
|
|
81
80
|
getMenu: async (context, event) => {
|
|
82
|
-
return await request.send(game.getListRoot(
|
|
81
|
+
return await request.send(game.getListRoot())
|
|
83
82
|
},
|
|
84
83
|
fetchUpdateMenu: async (context, event) => {
|
|
85
|
-
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp
|
|
84
|
+
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp }))
|
|
86
85
|
},
|
|
87
86
|
},
|
|
88
87
|
}
|
package/src/machine/side_v2.js
CHANGED
|
@@ -2,7 +2,6 @@ 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
|
|
6
5
|
return createMachine(
|
|
7
6
|
{
|
|
8
7
|
id: 'side',
|
|
@@ -161,10 +160,10 @@ export default function (request) {
|
|
|
161
160
|
},
|
|
162
161
|
services: {
|
|
163
162
|
getMenu: async (context, event) => {
|
|
164
|
-
return await request.send(game.getListRoot(
|
|
163
|
+
return await request.send(game.getListRoot())
|
|
165
164
|
},
|
|
166
165
|
fetchUpdateMenu: async (context, event) => {
|
|
167
|
-
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp
|
|
166
|
+
return await request.send(game.getListRoot({ timestamp: context.menu.timestamp }))
|
|
168
167
|
},
|
|
169
168
|
},
|
|
170
169
|
}
|
|
@@ -2,7 +2,6 @@ import { assign, createMachine } from 'xstate'
|
|
|
2
2
|
import user from '../api/user.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
-
const { appSecret } = request.config
|
|
6
5
|
return createMachine(
|
|
7
6
|
{
|
|
8
7
|
id: 'user_reset_password',
|
|
@@ -208,20 +207,20 @@ export default function (request) {
|
|
|
208
207
|
services: {
|
|
209
208
|
sendOtp: async (context, event) => {
|
|
210
209
|
const { provider, username, countryCode, phone, email } = context.otpParams
|
|
211
|
-
return await request.send(user.passwordV2RecoveryInit({ provider, username, countryCode, phone, email
|
|
210
|
+
return await request.send(user.passwordV2RecoveryInit({ provider, username, countryCode, phone, email }))
|
|
212
211
|
},
|
|
213
212
|
resetOtp: async (context, event) => {
|
|
214
213
|
const { requestId, target } = context
|
|
215
|
-
return await request.send(user.passwordV2ResetOtp({ requestId, target
|
|
214
|
+
return await request.send(user.passwordV2ResetOtp({ requestId, target }))
|
|
216
215
|
},
|
|
217
216
|
acknowledge: async (context, event) => {
|
|
218
217
|
const { requestId, target } = context
|
|
219
218
|
const code = event.data
|
|
220
|
-
return await request.send(user.passwordV2Acknowledge({ requestId, target, code
|
|
219
|
+
return await request.send(user.passwordV2Acknowledge({ requestId, target, code }))
|
|
221
220
|
},
|
|
222
221
|
change: async (context, event) => {
|
|
223
222
|
const { requestId, target, newPassword } = context
|
|
224
|
-
return await request.send(user.passwordV2Change({ requestId, target, newPassword
|
|
223
|
+
return await request.send(user.passwordV2Change({ requestId, target, newPassword }))
|
|
225
224
|
},
|
|
226
225
|
},
|
|
227
226
|
}
|
package/src/machine/vip_table.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { assign, createMachine } from 'xstate'
|
|
2
2
|
import activity from '../api/activity.js'
|
|
3
3
|
export default function (request) {
|
|
4
|
-
const { appSecret } = request.config
|
|
5
4
|
return createMachine(
|
|
6
5
|
{
|
|
7
6
|
id: 'vip_table',
|
|
@@ -36,20 +35,14 @@ export default function (request) {
|
|
|
36
35
|
},
|
|
37
36
|
services: {
|
|
38
37
|
fetchVipTable: async (context, event) => {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (!result?.viptable) {
|
|
43
|
-
dataList = result.data
|
|
44
|
-
} else {
|
|
45
|
-
dataList = result.viptable?.data
|
|
46
|
-
}
|
|
47
|
-
dataList.map((item) => {
|
|
38
|
+
const { viptable = {} } = await request.send(activity.getVipTable())
|
|
39
|
+
const { data = [] } = viptable
|
|
40
|
+
data.map((item) => {
|
|
48
41
|
item.title = item.title.toLowerCase()
|
|
49
42
|
return item
|
|
50
43
|
})
|
|
51
44
|
|
|
52
|
-
return
|
|
45
|
+
return data
|
|
53
46
|
},
|
|
54
47
|
},
|
|
55
48
|
}
|
|
@@ -204,16 +204,8 @@ export default function (request, context) {
|
|
|
204
204
|
}
|
|
205
205
|
}),
|
|
206
206
|
setCalculation: assign((context, event) => {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
if (data) {
|
|
210
|
-
return {
|
|
211
|
-
calculation: data,
|
|
212
|
-
}
|
|
213
|
-
} else {
|
|
214
|
-
return {
|
|
215
|
-
calculation: event.data,
|
|
216
|
-
}
|
|
207
|
+
return {
|
|
208
|
+
calculation: event.data,
|
|
217
209
|
}
|
|
218
210
|
}),
|
|
219
211
|
resetCharge: assign((context, event) => {
|
|
@@ -384,16 +384,8 @@ export default function (request) {
|
|
|
384
384
|
}
|
|
385
385
|
}),
|
|
386
386
|
setCalculation: assign((context, event) => {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
if (data) {
|
|
390
|
-
return {
|
|
391
|
-
calculation: data,
|
|
392
|
-
}
|
|
393
|
-
} else {
|
|
394
|
-
return {
|
|
395
|
-
calculation: event.data,
|
|
396
|
-
}
|
|
387
|
+
return {
|
|
388
|
+
calculation: event.data,
|
|
397
389
|
}
|
|
398
390
|
}),
|
|
399
391
|
clearCalculation: assign((context, event) => {
|