@jetthai/cuora 1.1.375-qa-1 → 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 -22
- 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 +10 -10
- 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_search_cash.js +4 -4
- package/src/machine/game_search_v2.js +9 -9
- package/src/machine/game_v2_1.js +3 -8
- 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 -197
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.375-qa-1](https://github.com/jetthai/cuora-module/compare/v1.1.375...v1.1.375-qa-1) (2025-09-09)
|
|
6
|
-
|
|
7
5
|
### [1.1.375](https://github.com/jetthai/cuora-module/compare/v1.1.374...v1.1.375) (2025-08-31)
|
|
8
6
|
|
|
9
7
|
### [1.1.374](https://github.com/jetthai/cuora-module/compare/v1.1.373...v1.1.374) (2025-08-28)
|
|
@@ -22,18 +20,8 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
22
20
|
|
|
23
21
|
### [1.1.367](https://github.com/jetthai/cuora-module/compare/v1.1.366...v1.1.367) (2025-07-22)
|
|
24
22
|
|
|
25
|
-
### [1.1.366-v2api-2](https://github.com/jetthai/cuora-module/compare/v1.1.366-v2api-1...v1.1.366-v2api-2) (2025-07-18)
|
|
26
|
-
|
|
27
|
-
### [1.1.366-v2api-1](https://github.com/jetthai/cuora-module/compare/v1.1.366...v1.1.366-v2api-1) (2025-07-18)
|
|
28
|
-
|
|
29
23
|
### [1.1.366](https://github.com/jetthai/cuora-module/compare/v1.1.365...v1.1.366) (2025-07-18)
|
|
30
24
|
|
|
31
|
-
### [1.1.365-v2api-3](https://github.com/jetthai/cuora-module/compare/v1.1.365-v2api-2...v1.1.365-v2api-3) (2025-07-18)
|
|
32
|
-
|
|
33
|
-
### [1.1.365-v2api-2](https://github.com/jetthai/cuora-module/compare/v1.1.365-v2api-1...v1.1.365-v2api-2) (2025-07-17)
|
|
34
|
-
|
|
35
|
-
### [1.1.365-v2api-1](https://github.com/jetthai/cuora-module/compare/v1.1.365...v1.1.365-v2api-1) (2025-07-17)
|
|
36
|
-
|
|
37
25
|
### [1.1.365](https://github.com/jetthai/cuora-module/compare/v1.1.364...v1.1.365) (2025-07-08)
|
|
38
26
|
|
|
39
27
|
### [1.1.364](https://github.com/jetthai/cuora-module/compare/v1.1.363...v1.1.364) (2025-06-23)
|
|
@@ -42,28 +30,18 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
42
30
|
|
|
43
31
|
### [1.1.362](https://github.com/jetthai/cuora-module/compare/v1.1.361...v1.1.362) (2025-06-20)
|
|
44
32
|
|
|
45
|
-
### [1.1.361-v2api-1](https://github.com/jetthai/cuora-module/compare/v1.1.361...v1.1.361-v2api-1) (2025-06-05)
|
|
46
|
-
|
|
47
33
|
### [1.1.361](https://github.com/jetthai/cuora-module/compare/v1.1.360...v1.1.361) (2025-06-03)
|
|
48
34
|
|
|
49
35
|
### [1.1.360](https://github.com/jetthai/cuora-module/compare/v1.1.359...v1.1.360) (2025-06-03)
|
|
50
36
|
|
|
51
|
-
### [1.1.358-apiv2-2](https://github.com/jetthai/cuora-module/compare/v1.1.359...v1.1.358-apiv2-2) (2025-05-27)
|
|
52
|
-
|
|
53
37
|
### [1.1.359](https://github.com/jetthai/cuora-module/compare/v1.1.358...v1.1.359) (2025-05-23)
|
|
54
38
|
|
|
55
|
-
### [1.1.358-apiv2-1](https://github.com/jetthai/cuora-module/compare/v1.1.358...v1.1.358-apiv2-1) (2025-05-09)
|
|
56
|
-
|
|
57
39
|
### [1.1.358](https://github.com/jetthai/cuora-module/compare/v1.1.357...v1.1.358) (2025-05-09)
|
|
58
40
|
|
|
59
41
|
### [1.1.357](https://github.com/jetthai/cuora-module/compare/v1.1.356...v1.1.357) (2025-05-06)
|
|
60
42
|
|
|
61
43
|
### [1.1.356](https://github.com/jetthai/cuora-module/compare/v1.1.355...v1.1.356) (2025-04-29)
|
|
62
44
|
|
|
63
|
-
### [1.1.355-apiv2-2](https://github.com/jetthai/cuora-module/compare/v1.1.355-apiv2-1...v1.1.355-apiv2-2) (2025-05-07)
|
|
64
|
-
|
|
65
|
-
### [1.1.355-apiv2-1](https://github.com/jetthai/cuora-module/compare/v1.1.355...v1.1.355-apiv2-1) (2025-05-05)
|
|
66
|
-
|
|
67
45
|
### [1.1.355](https://github.com/jetthai/cuora-module/compare/v1.1.353-data-1...v1.1.355) (2025-04-22)
|
|
68
46
|
|
|
69
47
|
### [1.1.354](https://github.com/jetthai/cuora-module/compare/v1.1.353...v1.1.354) (2025-04-14)
|
package/package.json
CHANGED
package/src/api/activity.js
CHANGED
|
@@ -29,10 +29,9 @@ export default {
|
|
|
29
29
|
method: 'get',
|
|
30
30
|
params: { activityNo, appSecret },
|
|
31
31
|
}),
|
|
32
|
-
getActivityRanking: (
|
|
32
|
+
getActivityRanking: () => ({
|
|
33
33
|
url: 'activities/activity/ranking',
|
|
34
34
|
method: 'get',
|
|
35
|
-
params: { appSecret },
|
|
36
35
|
isPublic: true,
|
|
37
36
|
}),
|
|
38
37
|
getAchievements: ({ limit, page, appSecret }) => ({
|
|
@@ -84,7 +83,7 @@ export default {
|
|
|
84
83
|
settleAmount: (data) => ({ url: 'activities/exchange/diamond/settle', method: 'post', params: data }),
|
|
85
84
|
exchange: (data) => ({ url: 'activities/exchange', method: 'post', params: data }),
|
|
86
85
|
collect: (data) => ({ url: 'activities/collect', method: 'post', params: data }),
|
|
87
|
-
getVipTable: (
|
|
86
|
+
getVipTable: () => ({ url: 'activities/viptable', method: 'get' }),
|
|
88
87
|
getRankingList: () => ({ url: 'activities/ranking', method: 'get' }),
|
|
89
88
|
exchangeDiamond: ({ activityNo, exchangeAward = [] }) => ({
|
|
90
89
|
url: 'activities/exchange/diamond',
|
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 }) => ({
|
|
58
58
|
url: 'checkAccount',
|
|
59
59
|
method: 'post',
|
|
60
|
-
params: { account, nick_name, strategy
|
|
60
|
+
params: { account, nick_name, strategy },
|
|
61
61
|
isPublic: true,
|
|
62
62
|
}),
|
|
63
63
|
}
|
package/src/api/common.js
CHANGED
|
@@ -2,7 +2,7 @@ export default {
|
|
|
2
2
|
getConfig: ({ appSecret }) => ({ url: 'getConfig', method: 'get', params: { appSecret }, isPublic: true }),
|
|
3
3
|
getLayoutConfig: ({ appSecret }) => ({ url: 'getQuickLayout', method: 'get', params: { appSecret }, isPublic: true }),
|
|
4
4
|
feeds: ({ appSecret }) => ({ url: 'feeds', method: 'get', params: { appSecret }, isPublic: true }),
|
|
5
|
-
broadcast: () => ({ url: 'broadcast', method: 'get',
|
|
5
|
+
broadcast: () => ({ url: 'broadcast', method: 'get', isPublic: true }),
|
|
6
6
|
getAnnouncements: ({ appSecret }) => ({ url: 'getAnnouncements', params: { appSecret }, method: 'get', isPublic: true }),
|
|
7
7
|
getNavbar: ({ appSecret } = {}) => ({ url: 'getNavbarSetting', params: { appSecret }, method: 'get', isPublic: true }),
|
|
8
8
|
getDefaultAffiliateCode: ({ appSecret }) => ({ url: 'getAffiliateCode', params: { appSecret }, method: 'get', isPublic: true }),
|
package/src/api/game.js
CHANGED
|
@@ -57,30 +57,30 @@ export default {
|
|
|
57
57
|
url: 'game/history/options',
|
|
58
58
|
method: 'get',
|
|
59
59
|
}),
|
|
60
|
-
getListRoot: ({ timestamp
|
|
60
|
+
getListRoot: ({ timestamp } = {}) => ({
|
|
61
61
|
url: 'game/list/v3/root',
|
|
62
62
|
method: 'get',
|
|
63
|
-
params: { timestamp
|
|
63
|
+
params: { timestamp },
|
|
64
64
|
}),
|
|
65
|
-
getListCategory: ({ categoryId, timestamp, index
|
|
65
|
+
getListCategory: ({ categoryId, timestamp, index }) => ({
|
|
66
66
|
url: 'game/list/v3/category',
|
|
67
67
|
method: 'get',
|
|
68
|
-
params: { categoryId, timestamp, index
|
|
68
|
+
params: { categoryId, timestamp, index },
|
|
69
69
|
}),
|
|
70
|
-
getListAddition: ({ categoryId, timestamp, index
|
|
70
|
+
getListAddition: ({ categoryId, timestamp, index }) => ({
|
|
71
71
|
url: 'game/list/v3/addition',
|
|
72
72
|
method: 'get',
|
|
73
|
-
params: { categoryId, timestamp, index
|
|
73
|
+
params: { categoryId, timestamp, index },
|
|
74
74
|
}),
|
|
75
|
-
getListCategoryByRange: ({ categoryId, timestamp, end
|
|
75
|
+
getListCategoryByRange: ({ categoryId, timestamp, end }) => ({
|
|
76
76
|
url: 'game/list/v3/categoryByRange',
|
|
77
77
|
method: 'get',
|
|
78
|
-
params: { categoryId, timestamp, end
|
|
78
|
+
params: { categoryId, timestamp, end },
|
|
79
79
|
}),
|
|
80
|
-
getListAdditionByRange: ({ categoryId, timestamp, end
|
|
80
|
+
getListAdditionByRange: ({ categoryId, timestamp, end }) => ({
|
|
81
81
|
url: 'game/list/v3/additionByRange',
|
|
82
82
|
method: 'get',
|
|
83
|
-
params: { categoryId, timestamp, end
|
|
83
|
+
params: { categoryId, timestamp, end },
|
|
84
84
|
}),
|
|
85
85
|
getListMyFavorite: ({ timestamp } = {}) => ({
|
|
86
86
|
url: 'game/list/v3/myFavorite',
|
package/src/api/payment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
getPaymentHistory: (returnDays) => ({ url: 'payment/v2/history', method: 'post', params: { returnDays } }),
|
|
3
|
-
getSpotMarket: () => ({ url: 'payment/
|
|
3
|
+
getSpotMarket: () => ({ url: 'payment/spotmarket', method: 'get' }),
|
|
4
4
|
getTransactionHistory: (payload) => ({
|
|
5
5
|
url: 'payment/v2/transactionHistory',
|
|
6
6
|
method: 'post',
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
}),
|
|
9
9
|
getTransactionHistoryOptions: () => ({ url: 'payment/v2/category/options', method: 'get' }),
|
|
10
10
|
getPaymentInfo: () => ({ url: `payment/v2/paymentInfo`, method: 'get' }),
|
|
11
|
-
getBindingPaymentInfo: () => ({ url: `payment/
|
|
11
|
+
getBindingPaymentInfo: () => ({ url: `payment/getBindingPaymentInfo`, method: 'get' }),
|
|
12
12
|
updatePaymentInfo: ({
|
|
13
13
|
bankCode,
|
|
14
14
|
branch,
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
}),
|
|
59
59
|
getBankList: (paymentMethod) => ({ url: `payment/v2/${paymentMethod}/getBankList`, method: 'get' }),
|
|
60
60
|
getBindingBankList: ({ appSecret }) => ({ url: 'payment/v2/getBindingBankList', method: 'get', params: { appSecret }, isPublic: true }),
|
|
61
|
-
getBindingPaymentList: ({ appSecret }) => ({ url: 'payment/
|
|
61
|
+
getBindingPaymentList: ({ appSecret }) => ({ url: 'payment/getBindingPaymentList', method: 'get', params: { appSecret }, isPublic: true }),
|
|
62
62
|
getWithdrawBankList: () => ({ url: 'payment/v2/getWithdrawBankList', method: 'get' }),
|
|
63
63
|
makeTransaction: ({ type, payload, paymentMethod }) => ({
|
|
64
64
|
url: `payment/v2/${paymentMethod}/transaction`,
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
68
68
|
...payload,
|
|
69
69
|
},
|
|
70
70
|
}),
|
|
71
|
-
checkTransaction: (paymentMethod) => ({ url: `payment
|
|
71
|
+
checkTransaction: (paymentMethod) => ({ url: `payment/${paymentMethod}/checkTransaction`, method: 'post' }),
|
|
72
72
|
setBonusSetting: ({ bonus }) => ({ url: 'payment/v2/setting', method: 'post', params: { bonus } }),
|
|
73
73
|
getCurrentWithdrawRule: () => ({ url: 'payment/v2/getCurrentWithdrawRule', method: 'get' }),
|
|
74
74
|
getDoubleWalletWithdrawRule: ({ walletType }) => ({
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
method: 'post',
|
|
82
82
|
params: { exchangeType, cryptoNetwork, targetAddress },
|
|
83
83
|
}),
|
|
84
|
-
mergeWallet: () => ({ url: 'payment/
|
|
84
|
+
mergeWallet: () => ({ url: 'payment/mergeWallet', method: 'post' }),
|
|
85
85
|
getPaymentDetail: ({ transferType } = {}) => ({
|
|
86
86
|
url: 'payment/v2/paymentDetail',
|
|
87
87
|
method: 'post',
|
package/src/api/ranking.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
// 未登入排名資料
|
|
3
|
-
getTournament: ({ activityNo, cycle, round, site
|
|
3
|
+
getTournament: ({ activityNo, cycle, round, site }) => ({
|
|
4
4
|
url: 'tournament/detail',
|
|
5
5
|
method: 'post',
|
|
6
|
-
params: { activityNo, cycle, round, site
|
|
6
|
+
params: { activityNo, cycle, round, site },
|
|
7
7
|
isPublic: true,
|
|
8
8
|
}),
|
|
9
9
|
// 登入後排名預設期數資料
|
|
10
|
-
getRankingOptions: ({ activityNo
|
|
10
|
+
getRankingOptions: ({ activityNo }) => ({
|
|
11
11
|
url: 'ranking/detail/option',
|
|
12
12
|
method: 'get',
|
|
13
|
-
params: { activityNo
|
|
13
|
+
params: { activityNo },
|
|
14
14
|
isPublic: true,
|
|
15
15
|
}),
|
|
16
16
|
// 登入後排名資料
|
|
@@ -19,9 +19,9 @@ export default {
|
|
|
19
19
|
method: 'post',
|
|
20
20
|
params: { activityNo, cycle, round },
|
|
21
21
|
}),
|
|
22
|
-
getRankingGames: ({ activityNo
|
|
22
|
+
getRankingGames: ({ activityNo }) => ({
|
|
23
23
|
url: 'hot-game/ranking',
|
|
24
24
|
method: 'get',
|
|
25
|
-
params: { activityNo
|
|
25
|
+
params: { activityNo },
|
|
26
26
|
}),
|
|
27
27
|
}
|
package/src/api/user.js
CHANGED
|
@@ -21,33 +21,28 @@ export default {
|
|
|
21
21
|
getFriendsList: ({ type, page, row }) => ({ url: 'friends/reward-list', method: 'post', params: { type, page, row } }),
|
|
22
22
|
postFriends: ({ friendCode }) => ({ url: 'friends', method: 'post', params: { friendCode } }),
|
|
23
23
|
passwordRecovery: (recoveryData) => ({ url: 'recovery', method: 'post', params: recoveryData, isPublic: true }),
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
passwordAbandon: ({ number }) => ({ url: 'recovery/abandon', method: 'post', params: { number }, isPublic: true }),
|
|
25
|
+
passwordAcknowledge: (acknowledgeData) => ({ url: 'recovery/acknowledge', method: 'post', params: acknowledgeData, isPublic: true }),
|
|
26
26
|
verify: () => ({ url: 'verify', method: 'post' }),
|
|
27
27
|
acknowledge: ({ requestId, code }) => ({ url: 'acknowledge', method: 'post', params: { requestId, code } }),
|
|
28
|
-
passwordV2RecoveryInit: ({ provider, username, countryCode, phone, email
|
|
28
|
+
passwordV2RecoveryInit: ({ provider, username, countryCode, phone, email }) => ({
|
|
29
29
|
url: 'recovery/v2/initiate',
|
|
30
30
|
method: 'post',
|
|
31
|
-
params: { provider, username, countryCode, phone, email
|
|
31
|
+
params: { provider, username, countryCode, phone, email },
|
|
32
32
|
isPublic: true,
|
|
33
33
|
}),
|
|
34
|
-
passwordV2Acknowledge: ({ requestId, target, code
|
|
34
|
+
passwordV2Acknowledge: ({ requestId, target, code }) => ({
|
|
35
35
|
url: 'recovery/v2/acknowledge',
|
|
36
36
|
method: 'post',
|
|
37
|
-
params: { requestId, target, code
|
|
38
|
-
isPublic: true,
|
|
39
|
-
}),
|
|
40
|
-
// passwordV2Abandon: ({ requestId, target }) => ({ url: 'recovery/v2/abandon', method: 'post', params: { requestId, target }, isPublic: true }), 平台版和現金網未使用
|
|
41
|
-
passwordV2ResetOtp: ({ requestId, target }) => ({
|
|
42
|
-
url: 'recovery/v2/reset',
|
|
43
|
-
method: 'post',
|
|
44
|
-
params: { requestId, target, appSecret },
|
|
37
|
+
params: { requestId, target, code },
|
|
45
38
|
isPublic: true,
|
|
46
39
|
}),
|
|
40
|
+
passwordV2Abandon: ({ requestId, target }) => ({ url: 'recovery/v2/abandon', method: 'post', params: { requestId, target }, isPublic: true }),
|
|
41
|
+
passwordV2ResetOtp: ({ requestId, target }) => ({ url: 'recovery/v2/reset', method: 'post', params: { requestId, target }, isPublic: true }),
|
|
47
42
|
passwordV2Change: ({ requestId, target, newPassword }) => ({
|
|
48
43
|
url: 'recovery/v2/changePassword',
|
|
49
44
|
method: 'post',
|
|
50
|
-
params: { requestId, target, newPassword
|
|
45
|
+
params: { requestId, target, newPassword },
|
|
51
46
|
isPublic: true,
|
|
52
47
|
}),
|
|
53
48
|
verifyV2Initiate: ({ strategy }) => ({
|
package/src/machine/common.js
CHANGED
|
@@ -293,13 +293,14 @@ export default function (request) {
|
|
|
293
293
|
return { announcementList: { data } }
|
|
294
294
|
}),
|
|
295
295
|
setFeeds: assign((context, event) => {
|
|
296
|
-
const { broadcastList, mailBoxInfo } = event.data
|
|
296
|
+
const { announcementList, broadcastList, mailBoxInfo } = event.data
|
|
297
297
|
const { siteConfig } = context
|
|
298
|
+
const promotions = announcementList?.announcements?.filter?.((item) => item.category === 3) || []
|
|
298
299
|
const customerMessageEnable = siteConfig?.csChat?.some((item) => item.enable && item.name === 'customermessage')
|
|
299
300
|
if (!customerMessageEnable) {
|
|
300
301
|
mailBoxInfo.rows -= mailBoxInfo.detailRows?.CUSTOMER || 0
|
|
301
302
|
}
|
|
302
|
-
return { broadcastList, mailBoxInfo }
|
|
303
|
+
return { broadcastList, mailBoxInfo, promotions }
|
|
303
304
|
}),
|
|
304
305
|
setBroadcast: assign((context, event) => {
|
|
305
306
|
const { broadcastList, sentNormalBroadcastList, normalBroadcast } = context
|
|
@@ -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,
|
|
67
67
|
}
|
|
68
68
|
}),
|
|
69
69
|
},
|
|
@@ -232,16 +232,8 @@ export default function (request) {
|
|
|
232
232
|
}
|
|
233
233
|
}),
|
|
234
234
|
setCalculation: assign((context, event) => {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
if (data) {
|
|
238
|
-
return {
|
|
239
|
-
calculation: data,
|
|
240
|
-
}
|
|
241
|
-
} else {
|
|
242
|
-
return {
|
|
243
|
-
calculation: event.data,
|
|
244
|
-
}
|
|
235
|
+
return {
|
|
236
|
+
calculation: event.data,
|
|
245
237
|
}
|
|
246
238
|
}),
|
|
247
239
|
clearCalculation: assign((context, event) => {
|
|
@@ -202,16 +202,8 @@ export default function (request, context) {
|
|
|
202
202
|
return { selectedAmount: event.data }
|
|
203
203
|
}),
|
|
204
204
|
setCalculation: assign((context, event) => {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
if (data) {
|
|
208
|
-
return {
|
|
209
|
-
calculation: data,
|
|
210
|
-
}
|
|
211
|
-
} else {
|
|
212
|
-
return {
|
|
213
|
-
calculation: event.data,
|
|
214
|
-
}
|
|
205
|
+
return {
|
|
206
|
+
calculation: event.data,
|
|
215
207
|
}
|
|
216
208
|
}),
|
|
217
209
|
clearCalculation: assign((context, event) => {
|
|
@@ -164,16 +164,8 @@ export default function (request) {
|
|
|
164
164
|
}
|
|
165
165
|
}),
|
|
166
166
|
setCalculation: assign((context, event) => {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
if (data) {
|
|
170
|
-
return {
|
|
171
|
-
calculation: data,
|
|
172
|
-
}
|
|
173
|
-
} else {
|
|
174
|
-
return {
|
|
175
|
-
calculation: event.data,
|
|
176
|
-
}
|
|
167
|
+
return {
|
|
168
|
+
calculation: event.data,
|
|
177
169
|
}
|
|
178
170
|
}),
|
|
179
171
|
clearCalculation: assign((context, event) => {
|
|
@@ -168,16 +168,8 @@ export default function (request, context) {
|
|
|
168
168
|
}
|
|
169
169
|
}),
|
|
170
170
|
setCalculation: assign((context, event) => {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
if (data) {
|
|
174
|
-
return {
|
|
175
|
-
calculation: data,
|
|
176
|
-
}
|
|
177
|
-
} else {
|
|
178
|
-
return {
|
|
179
|
-
calculation: event.data,
|
|
180
|
-
}
|
|
171
|
+
return {
|
|
172
|
+
calculation: event.data,
|
|
181
173
|
}
|
|
182
174
|
}),
|
|
183
175
|
clearCalculation: assign((context, event) => {
|
|
@@ -180,16 +180,8 @@ export default function (request) {
|
|
|
180
180
|
return properties
|
|
181
181
|
}),
|
|
182
182
|
setCalculatedResult: assign((context, event) => {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
if (data) {
|
|
186
|
-
return {
|
|
187
|
-
calculatedResult: data,
|
|
188
|
-
}
|
|
189
|
-
} else {
|
|
190
|
-
return {
|
|
191
|
-
calculatedResult: event.data,
|
|
192
|
-
}
|
|
183
|
+
return {
|
|
184
|
+
calculatedResult: event.data,
|
|
193
185
|
}
|
|
194
186
|
}),
|
|
195
187
|
setSubmittedResult: assign((context, event) => {
|
|
@@ -241,7 +233,7 @@ export default function (request) {
|
|
|
241
233
|
return await request.send(
|
|
242
234
|
payment.getDepositExpectedResult({
|
|
243
235
|
method: currentCrypto.method,
|
|
244
|
-
amount:
|
|
236
|
+
amount: currentAmount,
|
|
245
237
|
cryptoCurrency: currentCrypto.channel,
|
|
246
238
|
})
|
|
247
239
|
)
|
|
@@ -197,7 +197,7 @@ export default function (request) {
|
|
|
197
197
|
}
|
|
198
198
|
}),
|
|
199
199
|
setBanks: assign((context, event) => {
|
|
200
|
-
const banks = event.data
|
|
200
|
+
const banks = event.data
|
|
201
201
|
return {
|
|
202
202
|
banks,
|
|
203
203
|
selectedBank: banks[0],
|
|
@@ -220,16 +220,8 @@ export default function (request) {
|
|
|
220
220
|
}
|
|
221
221
|
}),
|
|
222
222
|
setCalculation: assign((context, event) => {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
if (data) {
|
|
226
|
-
return {
|
|
227
|
-
calculation: data,
|
|
228
|
-
}
|
|
229
|
-
} else {
|
|
230
|
-
return {
|
|
231
|
-
calculation: event.data,
|
|
232
|
-
}
|
|
223
|
+
return {
|
|
224
|
+
calculation: event.data,
|
|
233
225
|
}
|
|
234
226
|
}),
|
|
235
227
|
clearCalculation: assign((context, event) => {
|
|
@@ -288,7 +280,7 @@ export default function (request) {
|
|
|
288
280
|
return await request.send(
|
|
289
281
|
payment.getDepositExpectedResult({
|
|
290
282
|
method: currentMethod,
|
|
291
|
-
amount
|
|
283
|
+
amount,
|
|
292
284
|
promotionsNo: promotion?.activityNo,
|
|
293
285
|
})
|
|
294
286
|
)
|
|
@@ -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
|
|
123
123
|
|
|
124
124
|
if (selectedDirect)
|
|
125
125
|
return {
|
|
@@ -144,16 +144,8 @@ export default function (request, context) {
|
|
|
144
144
|
}
|
|
145
145
|
}),
|
|
146
146
|
setCalculation: assign((context, event) => {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
if (data) {
|
|
150
|
-
return {
|
|
151
|
-
calculation: data,
|
|
152
|
-
}
|
|
153
|
-
} else {
|
|
154
|
-
return {
|
|
155
|
-
calculation: event.data,
|
|
156
|
-
}
|
|
147
|
+
return {
|
|
148
|
+
calculation: event.data,
|
|
157
149
|
}
|
|
158
150
|
}),
|
|
159
151
|
clearCalculation: assign((context, event) => {
|
|
@@ -203,7 +195,7 @@ export default function (request, context) {
|
|
|
203
195
|
return await request.send(
|
|
204
196
|
payment.getDepositExpectedResult({
|
|
205
197
|
method: selectedDirect.method,
|
|
206
|
-
amount:
|
|
198
|
+
amount: selectedAmount,
|
|
207
199
|
promotionsNo: promotion?.promotionsNo,
|
|
208
200
|
})
|
|
209
201
|
)
|
|
@@ -276,7 +276,7 @@ export default function (request) {
|
|
|
276
276
|
options: optional,
|
|
277
277
|
minimum,
|
|
278
278
|
maximum,
|
|
279
|
-
bankList
|
|
279
|
+
bankList,
|
|
280
280
|
grandTotalEnable,
|
|
281
281
|
}
|
|
282
282
|
}),
|
|
@@ -292,16 +292,8 @@ export default function (request) {
|
|
|
292
292
|
}
|
|
293
293
|
}),
|
|
294
294
|
setCalculation: assign((context, event) => {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
if (data) {
|
|
298
|
-
return {
|
|
299
|
-
calculation: data,
|
|
300
|
-
}
|
|
301
|
-
} else {
|
|
302
|
-
return {
|
|
303
|
-
calculation: event.data,
|
|
304
|
-
}
|
|
295
|
+
return {
|
|
296
|
+
calculation: event.data,
|
|
305
297
|
}
|
|
306
298
|
}),
|
|
307
299
|
clearCalculation: assign((context, event) => {
|
|
@@ -363,7 +355,7 @@ export default function (request) {
|
|
|
363
355
|
return await request.send(
|
|
364
356
|
payment.getDepositExpectedResult({
|
|
365
357
|
method,
|
|
366
|
-
amount
|
|
358
|
+
amount,
|
|
367
359
|
promotionsNo: promotion?.activityNo,
|
|
368
360
|
})
|
|
369
361
|
)
|
|
@@ -151,16 +151,8 @@ export default function (request, context) {
|
|
|
151
151
|
return { selectedAmount: event.data }
|
|
152
152
|
}),
|
|
153
153
|
setCalculation: assign((context, event) => {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
if (data) {
|
|
157
|
-
return {
|
|
158
|
-
calculation: data,
|
|
159
|
-
}
|
|
160
|
-
} else {
|
|
161
|
-
return {
|
|
162
|
-
calculation: event.data,
|
|
163
|
-
}
|
|
154
|
+
return {
|
|
155
|
+
calculation: event.data,
|
|
164
156
|
}
|
|
165
157
|
}),
|
|
166
158
|
clearCalculation: assign((context, event) => {
|
|
@@ -191,7 +183,7 @@ export default function (request, context) {
|
|
|
191
183
|
return await request.send(
|
|
192
184
|
payment.getDepositExpectedResult({
|
|
193
185
|
method: selectedLoadcard.method,
|
|
194
|
-
amount:
|
|
186
|
+
amount: selectedAmount,
|
|
195
187
|
promotionsNo: promotion?.promotionsNo,
|
|
196
188
|
})
|
|
197
189
|
)
|
|
@@ -265,16 +265,8 @@ export default function (request) {
|
|
|
265
265
|
return { selectedAmount: event.data }
|
|
266
266
|
}),
|
|
267
267
|
setCalculation: assign((context, event) => {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
if (data) {
|
|
271
|
-
return {
|
|
272
|
-
calculation: data,
|
|
273
|
-
}
|
|
274
|
-
} else {
|
|
275
|
-
return {
|
|
276
|
-
calculation: event.data,
|
|
277
|
-
}
|
|
268
|
+
return {
|
|
269
|
+
calculation: event.data,
|
|
278
270
|
}
|
|
279
271
|
}),
|
|
280
272
|
clearCalculation: assign((context, event) => {
|
|
@@ -327,7 +319,7 @@ export default function (request) {
|
|
|
327
319
|
return await request.send(
|
|
328
320
|
payment.getDepositExpectedResult({
|
|
329
321
|
method: currentMethod,
|
|
330
|
-
amount:
|
|
322
|
+
amount: selectedAmount,
|
|
331
323
|
promotionsNo: promotion?.activityNo,
|
|
332
324
|
})
|
|
333
325
|
)
|
|
@@ -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 || []
|
|
154
154
|
|
|
155
155
|
const houseBanks = currentPayment.banks.map((bank) => {
|
|
156
156
|
const foundBank = allBankList.find((item) => item.bankCode === bank.bankName)
|
|
@@ -200,16 +200,8 @@ export default function (request, context) {
|
|
|
200
200
|
return { selectedAmount: event.data }
|
|
201
201
|
}),
|
|
202
202
|
setCalculation: assign((context, event) => {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
if (data) {
|
|
206
|
-
return {
|
|
207
|
-
calculation: data,
|
|
208
|
-
}
|
|
209
|
-
} else {
|
|
210
|
-
return {
|
|
211
|
-
calculation: event.data,
|
|
212
|
-
}
|
|
203
|
+
return {
|
|
204
|
+
calculation: event.data,
|
|
213
205
|
}
|
|
214
206
|
}),
|
|
215
207
|
setProcessing: assign((context, event) => {
|
|
@@ -316,7 +308,7 @@ export default function (request, context) {
|
|
|
316
308
|
return await request.send(
|
|
317
309
|
payment.getDepositExpectedResult({
|
|
318
310
|
method,
|
|
319
|
-
amount:
|
|
311
|
+
amount: selectedAmount,
|
|
320
312
|
promotionsNo: promotion?.promotionsNo,
|
|
321
313
|
})
|
|
322
314
|
)
|
|
@@ -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
|
)
|