@jetthai/cuora 1.1.364-dev-5 → 1.1.364
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 +23 -15
- package/package.json +1 -1
- package/resetGitBranch.sh +49 -0
- package/src/api/activity.js +2 -2
- package/src/api/game.js +2 -1
- package/src/api/payment.js +5 -0
- package/src/api/ranking.js +4 -3
- package/src/machine/activity/activity.js +7 -6
- package/src/machine/activity/vip_card_activity.js +17 -9
- package/src/machine/bank_binding.js +44 -10
- package/src/machine/common.js +3 -1
- package/src/machine/deposit/direct.js +2 -6
- package/src/machine/deposit/float.js +2 -2
- package/src/machine/deposit/loadcard_vn.js +10 -51
- package/src/machine/deposit/manual_vn.js +3 -23
- package/src/machine/deposit/qrcode_v2.js +6 -132
- package/src/machine/deposit/virtual_bank_vn.js +3 -31
- package/src/machine/deposit/vpay.js +2 -2
- package/src/machine/game_search_cash.js +10 -2
- package/src/machine/game_search_v2.js +10 -2
- package/src/machine/game_v2_1.js +81 -12
- package/src/machine/inbox.js +4 -0
- package/src/machine/promotions.js +4 -5
- package/src/machine/ranking.js +38 -22
- package/src/machine/reward.js +44 -2
- package/src/machine/reward_cash.js +44 -15
- package/src/machine/setting.js +7 -0
- package/src/machine/withdraw/withdraw_crypto.js +1 -3
- package/src/machine/withdraw/withdraw_crypto2.js +1 -1
- package/src/machine/withdraw/withdraw_manual.js +2 -3
- package/src/machine/withdraw/withdraw_manual_cash.js +1 -1
- package/src/machine/withdraw/withdraw_vn.js +1 -3
- package/src/machine/withdraw/withdraw_vn2.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,35 +2,43 @@
|
|
|
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.364
|
|
5
|
+
### [1.1.364](https://github.com/jetthai/cuora-module/compare/v1.1.363...v1.1.364) (2025-06-23)
|
|
6
6
|
|
|
7
|
-
### [1.1.
|
|
7
|
+
### [1.1.363](https://github.com/jetthai/cuora-module/compare/v1.1.362...v1.1.363) (2025-06-23)
|
|
8
8
|
|
|
9
|
-
### [1.1.
|
|
9
|
+
### [1.1.362](https://github.com/jetthai/cuora-module/compare/v1.1.361...v1.1.362) (2025-06-20)
|
|
10
10
|
|
|
11
|
-
### [1.1.
|
|
11
|
+
### [1.1.361](https://github.com/jetthai/cuora-module/compare/v1.1.360...v1.1.361) (2025-06-03)
|
|
12
12
|
|
|
13
|
-
### [1.1.
|
|
13
|
+
### [1.1.360](https://github.com/jetthai/cuora-module/compare/v1.1.359...v1.1.360) (2025-06-03)
|
|
14
14
|
|
|
15
|
-
### [1.1.
|
|
15
|
+
### [1.1.359](https://github.com/jetthai/cuora-module/compare/v1.1.358...v1.1.359) (2025-05-23)
|
|
16
|
+
|
|
17
|
+
### [1.1.358](https://github.com/jetthai/cuora-module/compare/v1.1.357...v1.1.358) (2025-05-09)
|
|
18
|
+
|
|
19
|
+
### [1.1.357](https://github.com/jetthai/cuora-module/compare/v1.1.356...v1.1.357) (2025-05-06)
|
|
16
20
|
|
|
17
|
-
### [1.1.
|
|
21
|
+
### [1.1.356](https://github.com/jetthai/cuora-module/compare/v1.1.355...v1.1.356) (2025-04-29)
|
|
18
22
|
|
|
19
|
-
### [1.1.
|
|
23
|
+
### [1.1.355](https://github.com/jetthai/cuora-module/compare/v1.1.353-data-1...v1.1.355) (2025-04-22)
|
|
20
24
|
|
|
21
|
-
### [1.1.
|
|
25
|
+
### [1.1.354](https://github.com/jetthai/cuora-module/compare/v1.1.353...v1.1.354) (2025-04-14)
|
|
22
26
|
|
|
23
|
-
### [1.1.
|
|
27
|
+
### [1.1.354](https://github.com/jetthai/cuora-module/compare/v1.1.353...v1.1.354) (2025-04-14)
|
|
24
28
|
|
|
25
|
-
### [1.1.
|
|
29
|
+
### [1.1.353](https://github.com/jetthai/cuora-module/compare/v1.1.352...v1.1.353) (2025-04-02)
|
|
30
|
+
|
|
31
|
+
### [1.1.352](https://github.com/jetthai/cuora-module/compare/v1.1.351...v1.1.352) (2025-04-02)
|
|
32
|
+
|
|
33
|
+
### [1.1.351](https://github.com/jetthai/cuora-module/compare/v1.1.350...v1.1.351) (2025-04-02)
|
|
26
34
|
|
|
27
|
-
### [1.1.
|
|
35
|
+
### [1.1.350](https://github.com/jetthai/cuora-module/compare/v1.1.349...v1.1.350) (2025-03-31)
|
|
28
36
|
|
|
29
|
-
### [1.1.
|
|
37
|
+
### [1.1.349](https://github.com/jetthai/cuora-module/compare/v1.1.348...v1.1.349) (2025-03-30)
|
|
30
38
|
|
|
31
|
-
### [1.1.
|
|
39
|
+
### [1.1.348](https://github.com/jetthai/cuora-module/compare/v1.1.347...v1.1.348) (2025-03-30)
|
|
32
40
|
|
|
33
|
-
### [1.1.
|
|
41
|
+
### [1.1.347](https://github.com/jetthai/cuora-module/compare/v1.1.346...v1.1.347) (2025-03-30)
|
|
34
42
|
|
|
35
43
|
### [1.1.346](https://github.com/jetthai/cuora-module/compare/v1.1.345...v1.1.346) (2025-03-27)
|
|
36
44
|
|
package/package.json
CHANGED
package/resetGitBranch.sh
CHANGED
|
@@ -59,4 +59,53 @@ git branch --set-upstream-to=origin/dev dev
|
|
|
59
59
|
if [ $? -ne 0 ]; then
|
|
60
60
|
echo "設定 dev 分支的上游分支為 origin/dev 失敗"
|
|
61
61
|
exit 1
|
|
62
|
+
fi
|
|
63
|
+
|
|
64
|
+
# 切換到 master 分支
|
|
65
|
+
git checkout master
|
|
66
|
+
if [ $? -ne 0 ]; then
|
|
67
|
+
echo "切換到 master 分支失敗"
|
|
68
|
+
exit 1
|
|
69
|
+
fi
|
|
70
|
+
|
|
71
|
+
# 刪除本地的 qa 分支
|
|
72
|
+
git branch -D qa
|
|
73
|
+
if [ $? -ne 0 ]; then
|
|
74
|
+
echo "刪除本地 qa 分支失敗"
|
|
75
|
+
exit 1
|
|
76
|
+
fi
|
|
77
|
+
|
|
78
|
+
# 刪除遠端的 qa 分支
|
|
79
|
+
git push origin --delete qa
|
|
80
|
+
if [ $? -ne 0 ]; then
|
|
81
|
+
echo "刪除遠端 qa 分支失敗"
|
|
82
|
+
exit 1
|
|
83
|
+
fi
|
|
84
|
+
|
|
85
|
+
# 建立並切換到新的 qa 分支
|
|
86
|
+
git checkout -b qa
|
|
87
|
+
if [ $? -ne 0 ]; then
|
|
88
|
+
echo "建立並切換到新的 qa 分支失敗"
|
|
89
|
+
exit 1
|
|
90
|
+
fi
|
|
91
|
+
|
|
92
|
+
# 強制推送新的 qa 分支到遠端
|
|
93
|
+
git push -f origin qa
|
|
94
|
+
if [ $? -ne 0 ]; then
|
|
95
|
+
echo "強制推送新的 qa 分支到遠端失敗"
|
|
96
|
+
exit 1
|
|
97
|
+
fi
|
|
98
|
+
|
|
99
|
+
# 設定 qa 分支的上游分支為 origin/qa
|
|
100
|
+
git branch --set-upstream-to=origin/qa qa
|
|
101
|
+
if [ $? -ne 0 ]; then
|
|
102
|
+
echo "設定 qa 分支的上游分支為 origin/qa 失敗"
|
|
103
|
+
exit 1
|
|
104
|
+
fi
|
|
105
|
+
|
|
106
|
+
# 切換到 master 分支
|
|
107
|
+
git checkout master
|
|
108
|
+
if [ $? -ne 0 ]; then
|
|
109
|
+
echo "切換到 master 分支失敗"
|
|
110
|
+
exit 1
|
|
62
111
|
fi
|
package/src/api/activity.js
CHANGED
|
@@ -69,10 +69,10 @@ export default {
|
|
|
69
69
|
method: 'get',
|
|
70
70
|
params: { rewardType },
|
|
71
71
|
}),
|
|
72
|
-
getRewardList: ({ rewardType, count, appSecret }) => ({
|
|
72
|
+
getRewardList: ({ rewardType, count, appSecret, orderColumn }) => ({
|
|
73
73
|
url: 'activities/rewards',
|
|
74
74
|
method: 'get',
|
|
75
|
-
params: { rewardType, count, appSecret },
|
|
75
|
+
params: { rewardType, count, appSecret, orderColumn },
|
|
76
76
|
}),
|
|
77
77
|
getCashRainReward: ({ activityNo, appSecret }) => ({
|
|
78
78
|
url: `activities/cashRain`,
|
package/src/api/game.js
CHANGED
|
@@ -4,9 +4,10 @@ export default {
|
|
|
4
4
|
removeFavoriteGame: (code) => ({ method: 'post', url: 'game/myfavorite/remove', params: { games: [code] } }),
|
|
5
5
|
getStatements: () => ({ url: 'game/statements', method: 'get' }),
|
|
6
6
|
playGame: (params) => ({ url: 'game/play', method: 'get', params }),
|
|
7
|
+
demoGame: (params) => ({ url: 'game/demo', method: 'get', params, isPublic: true }),
|
|
7
8
|
logoutGame: ({ uid_site, provider_id }) => ({ url: 'game/logout', method: 'get', params: { uid_site, provider_id } }),
|
|
8
9
|
|
|
9
|
-
getGameTags: ({ q, lang }) => ({ url: 'game/search', method: 'get', params: { q, lang } }),
|
|
10
|
+
getGameTags: ({ q, lang, limit = 20 }) => ({ url: 'game/search', method: 'get', params: { q, lang, limit } }),
|
|
10
11
|
getGameSearchHome: () => ({ url: 'game/search/home', method: 'get' }),
|
|
11
12
|
getGameSearchList: ({ id, index, q, click, clickDefault, providerName }) => ({
|
|
12
13
|
url: 'game/search/list',
|
package/src/api/payment.js
CHANGED
|
@@ -19,6 +19,8 @@ export default {
|
|
|
19
19
|
lastNameTh,
|
|
20
20
|
firstNameEn,
|
|
21
21
|
lastNameEn,
|
|
22
|
+
firstNameLocale,
|
|
23
|
+
lastNameLocale,
|
|
22
24
|
bonus,
|
|
23
25
|
paymentProvider,
|
|
24
26
|
pixType,
|
|
@@ -41,6 +43,8 @@ export default {
|
|
|
41
43
|
lastNameTh,
|
|
42
44
|
firstNameEn,
|
|
43
45
|
lastNameEn,
|
|
46
|
+
firstNameLocale,
|
|
47
|
+
lastNameLocale,
|
|
44
48
|
bonus,
|
|
45
49
|
paymentProvider,
|
|
46
50
|
pixType,
|
|
@@ -242,4 +246,5 @@ export default {
|
|
|
242
246
|
getPendingOrder: ({ transferType }) => ({ url: 'payment/v2/pendingOrder', method: 'post', params: { transferType } }),
|
|
243
247
|
withdrawCheck: () => ({ url: `payment/v2/withdrawCheck`, method: 'post' }),
|
|
244
248
|
updateUtr: ({ applyId, utr }) => ({ url: 'payment/v2/updateUtr', method: 'post', params: { applyId, utr } }),
|
|
249
|
+
uploadCommonSlip: ({ applyId, slip }) => ({ url: 'payment/v2/uploadCommonSlip', method: 'post', params: { applyId, slip } }),
|
|
245
250
|
}
|
package/src/api/ranking.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
// 未登入排名資料
|
|
3
|
-
getTournament: ({ activityNo }) => ({
|
|
3
|
+
getTournament: ({ activityNo, cycle, round, site }) => ({
|
|
4
4
|
url: 'tournament/detail',
|
|
5
|
-
method: '
|
|
6
|
-
params: { activityNo },
|
|
5
|
+
method: 'post',
|
|
6
|
+
params: { activityNo, cycle, round, site },
|
|
7
7
|
isPublic: true,
|
|
8
8
|
}),
|
|
9
9
|
// 登入後排名預設期數資料
|
|
@@ -11,6 +11,7 @@ export default {
|
|
|
11
11
|
url: 'ranking/detail/option',
|
|
12
12
|
method: 'get',
|
|
13
13
|
params: { activityNo },
|
|
14
|
+
isPublic: true,
|
|
14
15
|
}),
|
|
15
16
|
// 登入後排名資料
|
|
16
17
|
getRankingDetail: ({ activityNo, cycle, round }) => ({
|
|
@@ -77,10 +77,6 @@ export default function (request) {
|
|
|
77
77
|
SET_UNREAD: {
|
|
78
78
|
actions: 'setUnread',
|
|
79
79
|
},
|
|
80
|
-
REFRESH: {
|
|
81
|
-
target: '#activity.fetchingList',
|
|
82
|
-
actions: 'leaveGame',
|
|
83
|
-
},
|
|
84
80
|
RESET_ACTIVITIES: {
|
|
85
81
|
actions: 'resetActivities',
|
|
86
82
|
},
|
|
@@ -89,6 +85,12 @@ export default function (request) {
|
|
|
89
85
|
},
|
|
90
86
|
},
|
|
91
87
|
},
|
|
88
|
+
on: {
|
|
89
|
+
REFRESH: {
|
|
90
|
+
target: '#activity.fetchingList',
|
|
91
|
+
actions: 'leaveGame',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
92
94
|
},
|
|
93
95
|
{
|
|
94
96
|
actions: {
|
|
@@ -182,8 +184,7 @@ export default function (request) {
|
|
|
182
184
|
services: {
|
|
183
185
|
fetchList: async (context, event) => {
|
|
184
186
|
const hasToken = request.getToken()
|
|
185
|
-
const
|
|
186
|
-
const apiCallable = hasToken && isDoubleWallet
|
|
187
|
+
const apiCallable = hasToken
|
|
187
188
|
const [{ data }, promotionList] = await Promise.all([
|
|
188
189
|
hasToken ? request.send(activity.getActivityList({ appSecret })) : request.send(activity.getAllActivityList({ appSecret })),
|
|
189
190
|
apiCallable && !context.isPlaying ? request.send(payment.getPromotionsList()) : [],
|
|
@@ -33,6 +33,10 @@ export default function (request) {
|
|
|
33
33
|
target: 'loading',
|
|
34
34
|
actions: 'setActivityNo',
|
|
35
35
|
},
|
|
36
|
+
SET_ACTIVITY: {
|
|
37
|
+
target: 'loading',
|
|
38
|
+
actions: 'setActivity',
|
|
39
|
+
},
|
|
36
40
|
},
|
|
37
41
|
},
|
|
38
42
|
loading: {
|
|
@@ -87,8 +91,18 @@ export default function (request) {
|
|
|
87
91
|
}
|
|
88
92
|
}),
|
|
89
93
|
setActivityDetail: assign((context, event) => {
|
|
94
|
+
let activityDetail = event.data
|
|
95
|
+
if (context.activityDetail && (!event.data || Object.keys(event.data).length === 0)) {
|
|
96
|
+
activityDetail = context.activityDetail
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
activityDetail,
|
|
100
|
+
}
|
|
101
|
+
}),
|
|
102
|
+
setActivity: assign((context, event) => {
|
|
90
103
|
return {
|
|
91
|
-
activityDetail: event.data,
|
|
104
|
+
activityDetail: event.data.activityDetail,
|
|
105
|
+
activityNo: event.data.activityNo,
|
|
92
106
|
}
|
|
93
107
|
}),
|
|
94
108
|
setInitData: assign((context, event) => {
|
|
@@ -111,18 +125,12 @@ export default function (request) {
|
|
|
111
125
|
|
|
112
126
|
let nextDepositLimit = '0'
|
|
113
127
|
let nextTurnoverLimit = '0'
|
|
114
|
-
let currentTurnover = '0'
|
|
115
|
-
let currentDeposit = '0'
|
|
116
128
|
const maxReachLevel = conditions?.[conditions?.length - 1]
|
|
117
129
|
// 若已達到最高等級,所有數值皆以最高等級顯示
|
|
118
130
|
if (maxReachLevel && nextCycleCardCurrentReachLevel?.title === maxReachLevel.title) {
|
|
119
|
-
currentDeposit = maxReachLevel.depositLimit
|
|
120
|
-
currentTurnover = maxReachLevel.turnoverLimit
|
|
121
131
|
nextDepositLimit = maxReachLevel.depositLimit
|
|
122
132
|
nextTurnoverLimit = maxReachLevel.turnoverLimit
|
|
123
133
|
} else {
|
|
124
|
-
currentDeposit = accumulateTotalDeposit
|
|
125
|
-
currentTurnover = accumulateTotalValidTurnover
|
|
126
134
|
nextDepositLimit = nextCycleCardNextReachLevel?.depositLimit
|
|
127
135
|
nextTurnoverLimit = nextCycleCardNextReachLevel?.turnoverLimit
|
|
128
136
|
}
|
|
@@ -139,8 +147,8 @@ export default function (request) {
|
|
|
139
147
|
lastCycleCard,
|
|
140
148
|
nextDepositLimit,
|
|
141
149
|
nextTurnoverLimit,
|
|
142
|
-
accumulateTotalDeposit
|
|
143
|
-
accumulateTotalValidTurnover
|
|
150
|
+
accumulateTotalDeposit,
|
|
151
|
+
accumulateTotalValidTurnover,
|
|
144
152
|
retainAmount,
|
|
145
153
|
yesterdayRewardsAmount,
|
|
146
154
|
calculateWalletMode,
|
|
@@ -27,6 +27,8 @@ export default function (request) {
|
|
|
27
27
|
branchCode: null,
|
|
28
28
|
accountNumber: null,
|
|
29
29
|
holderName: null,
|
|
30
|
+
lastNameLocale: null,
|
|
31
|
+
firstNameLocale: null,
|
|
30
32
|
pixType: null,
|
|
31
33
|
},
|
|
32
34
|
states: {
|
|
@@ -114,6 +116,20 @@ export default function (request) {
|
|
|
114
116
|
}
|
|
115
117
|
}),
|
|
116
118
|
},
|
|
119
|
+
SET_FIRST_NAME: {
|
|
120
|
+
actions: assign((context, event) => {
|
|
121
|
+
return {
|
|
122
|
+
firstNameLocale: event.data,
|
|
123
|
+
}
|
|
124
|
+
}),
|
|
125
|
+
},
|
|
126
|
+
SET_LAST_NAME: {
|
|
127
|
+
actions: assign((context, event) => {
|
|
128
|
+
return {
|
|
129
|
+
lastNameLocale: event.data,
|
|
130
|
+
}
|
|
131
|
+
}),
|
|
132
|
+
},
|
|
117
133
|
SET_PIX_TYPE: {
|
|
118
134
|
actions: assign((context, event) => {
|
|
119
135
|
return {
|
|
@@ -156,6 +172,8 @@ export default function (request) {
|
|
|
156
172
|
return {
|
|
157
173
|
hasAnyAccount: bankInfo.length > 0,
|
|
158
174
|
holderName: bankInfo[0]?.holderName,
|
|
175
|
+
firstNameLocale: bankInfo[0]?.firstNameLocale || null,
|
|
176
|
+
lastNameLocale: bankInfo[0]?.lastNameLocale || null,
|
|
159
177
|
paymentList,
|
|
160
178
|
bank: null, // 不預選銀行,玩家可能不知道這裡可以選 by Gordan
|
|
161
179
|
}
|
|
@@ -167,21 +185,21 @@ export default function (request) {
|
|
|
167
185
|
|
|
168
186
|
if (bindingType === 'CRYPTO') {
|
|
169
187
|
// 虛擬貨幣
|
|
170
|
-
const { crypto, network, cryptoAddress, holderName } = context
|
|
171
|
-
return crypto && network && cryptoAddress && holderName
|
|
188
|
+
const { crypto, network, cryptoAddress, holderName, firstNameLocale, lastNameLocale } = context
|
|
189
|
+
return crypto && network && cryptoAddress && (holderName || (firstNameLocale && lastNameLocale))
|
|
172
190
|
} else if (bindingType === 'EWALLET') {
|
|
173
191
|
// 電子錢包
|
|
174
|
-
const { walletCode, accountNumber, holderName } = context
|
|
175
|
-
return walletCode?.bankCode && accountNumber && holderName
|
|
192
|
+
const { walletCode, accountNumber, holderName, firstNameLocale, lastNameLocale } = context
|
|
193
|
+
return walletCode?.bankCode && accountNumber && (holderName || (firstNameLocale && lastNameLocale))
|
|
176
194
|
} else {
|
|
177
195
|
// 一般銀行
|
|
178
196
|
if (currency === 'INR') {
|
|
179
197
|
// 如果是印度幣別
|
|
180
|
-
const { bank, ifscCode, accountNumber, branch, holderName } = context
|
|
181
|
-
return bank.bankCode && ifscCode && accountNumber && branch && holderName
|
|
198
|
+
const { bank, ifscCode, accountNumber, branch, holderName, firstNameLocale, lastNameLocale } = context
|
|
199
|
+
return bank.bankCode && ifscCode && accountNumber && branch && (holderName || (firstNameLocale && lastNameLocale))
|
|
182
200
|
} else {
|
|
183
|
-
const { bank, accountNumber, branch, holderName } = context
|
|
184
|
-
return bank.bankCode && accountNumber && branch && holderName
|
|
201
|
+
const { bank, accountNumber, branch, holderName, firstNameLocale, lastNameLocale } = context
|
|
202
|
+
return bank.bankCode && accountNumber && branch && (holderName || (firstNameLocale && lastNameLocale))
|
|
185
203
|
}
|
|
186
204
|
}
|
|
187
205
|
},
|
|
@@ -195,8 +213,22 @@ export default function (request) {
|
|
|
195
213
|
return { paymentList, paymentInfo }
|
|
196
214
|
},
|
|
197
215
|
updatePaymentInfo: async (context, event) => {
|
|
198
|
-
const {
|
|
199
|
-
|
|
216
|
+
const {
|
|
217
|
+
bindingType,
|
|
218
|
+
bank,
|
|
219
|
+
ifscCode,
|
|
220
|
+
crypto,
|
|
221
|
+
network,
|
|
222
|
+
cryptoAddress,
|
|
223
|
+
walletCode,
|
|
224
|
+
branch,
|
|
225
|
+
branchCode,
|
|
226
|
+
accountNumber,
|
|
227
|
+
holderName,
|
|
228
|
+
firstNameLocale,
|
|
229
|
+
lastNameLocale,
|
|
230
|
+
pixType,
|
|
231
|
+
} = context
|
|
200
232
|
return await request.send(
|
|
201
233
|
payment.updatePaymentInfo({
|
|
202
234
|
bindingType,
|
|
@@ -210,6 +242,8 @@ export default function (request) {
|
|
|
210
242
|
branchCode,
|
|
211
243
|
bankAccount: accountNumber,
|
|
212
244
|
holderName,
|
|
245
|
+
firstNameLocale,
|
|
246
|
+
lastNameLocale,
|
|
213
247
|
pixType,
|
|
214
248
|
})
|
|
215
249
|
)
|
package/src/machine/common.js
CHANGED
|
@@ -113,6 +113,7 @@ export default function (request) {
|
|
|
113
113
|
actions: 'resetByEnterGame',
|
|
114
114
|
},
|
|
115
115
|
LEAVE_GAME_REFRESH: {
|
|
116
|
+
target: '.updating',
|
|
116
117
|
actions: 'leaveGame',
|
|
117
118
|
},
|
|
118
119
|
},
|
|
@@ -292,7 +293,8 @@ export default function (request) {
|
|
|
292
293
|
return { announcementList: { data } }
|
|
293
294
|
}),
|
|
294
295
|
setFeeds: assign((context, event) => {
|
|
295
|
-
const { announcementList, broadcastList, mailBoxInfo
|
|
296
|
+
const { announcementList, broadcastList, mailBoxInfo } = event.data
|
|
297
|
+
const { siteConfig } = context
|
|
296
298
|
const promotions = announcementList?.announcements?.filter?.((item) => item.category === 3) || []
|
|
297
299
|
const customerMessageEnable = siteConfig?.csChat?.some((item) => item.enable && item.name === 'customermessage')
|
|
298
300
|
if (!customerMessageEnable) {
|
|
@@ -58,7 +58,6 @@ export default function (request) {
|
|
|
58
58
|
always: [
|
|
59
59
|
{
|
|
60
60
|
target: 'loaded',
|
|
61
|
-
cond: 'isDoubleWalletMode',
|
|
62
61
|
},
|
|
63
62
|
{
|
|
64
63
|
target: 'calculating',
|
|
@@ -91,7 +90,7 @@ export default function (request) {
|
|
|
91
90
|
SUBMIT: [
|
|
92
91
|
{
|
|
93
92
|
target: 'pending',
|
|
94
|
-
cond: (context, event) =>
|
|
93
|
+
cond: (context, event) => !!context.calculation,
|
|
95
94
|
},
|
|
96
95
|
{
|
|
97
96
|
target: 'submitting',
|
|
@@ -129,7 +128,7 @@ export default function (request) {
|
|
|
129
128
|
SUBMIT: [
|
|
130
129
|
{
|
|
131
130
|
target: 'pending',
|
|
132
|
-
cond: (context, event) =>
|
|
131
|
+
cond: (context, event) => !!context.calculation,
|
|
133
132
|
},
|
|
134
133
|
{
|
|
135
134
|
target: 'submitting',
|
|
@@ -247,9 +246,6 @@ export default function (request) {
|
|
|
247
246
|
}),
|
|
248
247
|
},
|
|
249
248
|
guards: {
|
|
250
|
-
isDoubleWalletMode: (context, event) => {
|
|
251
|
-
return context.siteConfig?.walletMode === '4'
|
|
252
|
-
},
|
|
253
249
|
isCalculable: (context, event) => {
|
|
254
250
|
const {
|
|
255
251
|
amount,
|
|
@@ -72,8 +72,8 @@ export default function (request) {
|
|
|
72
72
|
target: 'fetching',
|
|
73
73
|
cond: (context, event) => {
|
|
74
74
|
const { siteConfig = {}, promotion = {} } = context
|
|
75
|
-
const {
|
|
76
|
-
return
|
|
75
|
+
const { bonusPreviewEnable } = siteConfig
|
|
76
|
+
return bonusPreviewEnable && promotion.activityNo != 'none'
|
|
77
77
|
},
|
|
78
78
|
},
|
|
79
79
|
{ target: 'loaded' },
|
|
@@ -49,8 +49,8 @@ export default function (request) {
|
|
|
49
49
|
target: 'fetching',
|
|
50
50
|
cond: (context, event) => {
|
|
51
51
|
const { siteConfig = {}, promotion = {}, selectedCard } = context
|
|
52
|
-
const {
|
|
53
|
-
return !!selectedCard &&
|
|
52
|
+
const { bonusPreviewEnable } = siteConfig
|
|
53
|
+
return !!selectedCard && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
{ target: 'loaded' },
|
|
@@ -78,8 +78,8 @@ export default function (request) {
|
|
|
78
78
|
actions: 'setCard',
|
|
79
79
|
cond: (context, event) => {
|
|
80
80
|
const { siteConfig = {}, promotion = {} } = context
|
|
81
|
-
const {
|
|
82
|
-
return
|
|
81
|
+
const { bonusPreviewEnable } = siteConfig
|
|
82
|
+
return bonusPreviewEnable && promotion.activityNo != 'none'
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
85
|
{
|
|
@@ -87,11 +87,6 @@ export default function (request) {
|
|
|
87
87
|
},
|
|
88
88
|
],
|
|
89
89
|
SELECT_AMOUNT: [
|
|
90
|
-
{
|
|
91
|
-
target: 'pending',
|
|
92
|
-
actions: 'setAmount',
|
|
93
|
-
cond: 'isFreeWalletMode',
|
|
94
|
-
},
|
|
95
90
|
{
|
|
96
91
|
target: 'debouncing',
|
|
97
92
|
actions: 'setAmount',
|
|
@@ -99,19 +94,6 @@ export default function (request) {
|
|
|
99
94
|
],
|
|
100
95
|
},
|
|
101
96
|
},
|
|
102
|
-
pending: {
|
|
103
|
-
on: {
|
|
104
|
-
SELECT_AMOUNT: {
|
|
105
|
-
actions: 'setAmount',
|
|
106
|
-
},
|
|
107
|
-
CONFIRM: {
|
|
108
|
-
target: 'debouncing',
|
|
109
|
-
},
|
|
110
|
-
BACK: {
|
|
111
|
-
target: 'loaded',
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
97
|
debouncing: {
|
|
116
98
|
on: {
|
|
117
99
|
SELECT_AMOUNT: {
|
|
@@ -132,19 +114,6 @@ export default function (request) {
|
|
|
132
114
|
invoke: {
|
|
133
115
|
src: 'fetchCalculation',
|
|
134
116
|
onDone: [
|
|
135
|
-
{
|
|
136
|
-
target: 'submitting',
|
|
137
|
-
actions: 'setCalculation',
|
|
138
|
-
cond: (context, event) => {
|
|
139
|
-
const { siteConfig = {}, selectedCard = {} } = context
|
|
140
|
-
return siteConfig.walletMode === '2' && selectedCard.jumpLinkEnable === 1
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
target: 'cardInfo',
|
|
145
|
-
actions: 'setCalculation',
|
|
146
|
-
cond: 'isFreeWalletMode',
|
|
147
|
-
},
|
|
148
117
|
{
|
|
149
118
|
target: 'calculated',
|
|
150
119
|
actions: 'setCalculation',
|
|
@@ -158,17 +127,10 @@ export default function (request) {
|
|
|
158
127
|
calculable: {
|
|
159
128
|
entry: 'clearCalculation',
|
|
160
129
|
on: {
|
|
161
|
-
SELECT_AMOUNT:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
cond: 'isFreeWalletMode',
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
target: 'debouncing',
|
|
169
|
-
actions: 'setAmount',
|
|
170
|
-
},
|
|
171
|
-
],
|
|
130
|
+
SELECT_AMOUNT: {
|
|
131
|
+
target: 'debouncing',
|
|
132
|
+
actions: 'setAmount',
|
|
133
|
+
},
|
|
172
134
|
BACK: {
|
|
173
135
|
target: 'loaded',
|
|
174
136
|
},
|
|
@@ -216,8 +178,8 @@ export default function (request) {
|
|
|
216
178
|
actions: 'setCard',
|
|
217
179
|
cond: (context, event) => {
|
|
218
180
|
const { siteConfig = {}, promotion = {} } = context
|
|
219
|
-
const {
|
|
220
|
-
return
|
|
181
|
+
const { bonusPreviewEnable } = siteConfig
|
|
182
|
+
return bonusPreviewEnable && promotion.activityNo != 'none'
|
|
221
183
|
},
|
|
222
184
|
},
|
|
223
185
|
{
|
|
@@ -325,9 +287,6 @@ export default function (request) {
|
|
|
325
287
|
}),
|
|
326
288
|
},
|
|
327
289
|
guards: {
|
|
328
|
-
isFreeWalletMode: (context, event) => {
|
|
329
|
-
return context.siteConfig?.walletMode === '2'
|
|
330
|
-
},
|
|
331
290
|
isSubmittable: (context, event) => {
|
|
332
291
|
const { cardNumber, serialNumber } = context
|
|
333
292
|
return cardNumber && serialNumber
|
|
@@ -75,24 +75,8 @@ export default function (request) {
|
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
77
|
step1: {
|
|
78
|
-
initial: '
|
|
78
|
+
initial: 'idle',
|
|
79
79
|
states: {
|
|
80
|
-
promotion: {
|
|
81
|
-
always: [
|
|
82
|
-
{
|
|
83
|
-
target: 'idle',
|
|
84
|
-
cond: 'isDoubleWalletMode',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
target: 'calculating',
|
|
88
|
-
actions: 'setPromotionDefaultAmount',
|
|
89
|
-
cond: 'hasMinPromotionDeposit',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
target: 'idle',
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
80
|
idle: {},
|
|
97
81
|
calculating: {
|
|
98
82
|
invoke: {
|
|
@@ -137,11 +121,10 @@ export default function (request) {
|
|
|
137
121
|
{
|
|
138
122
|
target: 'pending',
|
|
139
123
|
cond: (context, event) => {
|
|
140
|
-
const {
|
|
141
|
-
const { walletMode } = siteConfig
|
|
124
|
+
const { calculation, promotion } = context
|
|
142
125
|
const { promotionsNo, activityNo } = promotion
|
|
143
126
|
const isNoBonus = promotionsNo === 'none' || activityNo === 'none'
|
|
144
|
-
return
|
|
127
|
+
return !!calculation && !isNoBonus
|
|
145
128
|
},
|
|
146
129
|
},
|
|
147
130
|
{
|
|
@@ -385,9 +368,6 @@ export default function (request) {
|
|
|
385
368
|
}),
|
|
386
369
|
},
|
|
387
370
|
guards: {
|
|
388
|
-
isDoubleWalletMode: (context, event) => {
|
|
389
|
-
return context.siteConfig?.walletMode === '4'
|
|
390
|
-
},
|
|
391
371
|
isCalculable: (context, event) => {
|
|
392
372
|
const {
|
|
393
373
|
amount,
|