@jetthai/cuora 1.1.305-dev-5 → 1.1.305-dev-7
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,10 @@
|
|
|
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.305-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.305-dev-6...v1.1.305-dev-7) (2024-09-13)
|
|
6
|
+
|
|
7
|
+
### [1.1.305-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.305-dev-5...v1.1.305-dev-6) (2024-09-13)
|
|
8
|
+
|
|
5
9
|
### [1.1.305-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.305-dev-4...v1.1.305-dev-5) (2024-09-13)
|
|
6
10
|
|
|
7
11
|
### [1.1.305-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.305-dev-3...v1.1.305-dev-4) (2024-09-13)
|
package/package.json
CHANGED
|
@@ -159,34 +159,20 @@ export default function (request) {
|
|
|
159
159
|
},
|
|
160
160
|
isInsufficientAmount: (context, event) => {
|
|
161
161
|
const { collectAvailable, singleMinimumAmountReceive, actualRebateAmount } = context
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
combindString += item
|
|
167
|
-
})
|
|
168
|
-
} else {
|
|
169
|
-
combindString = actualRebateAmount
|
|
170
|
-
}
|
|
171
|
-
const deformatRebateAmount = parseFloat(`${combindString}`)
|
|
172
|
-
return !collectAvailable && deformatRebateAmount < parseFloat(`${singleMinimumAmountReceive}`)
|
|
162
|
+
const formattedSingleMinimumAmountReceive = parseFloat(singleMinimumAmountReceive.replace(/,/g, ''))
|
|
163
|
+
const formattedActualRebateAmount = parseFloat(actualRebateAmount.replace(/,/g, ''))
|
|
164
|
+
|
|
165
|
+
return !collectAvailable && parseFloat(`${formattedActualRebateAmount}`) < parseFloat(`${formattedSingleMinimumAmountReceive}`)
|
|
173
166
|
},
|
|
174
167
|
isClaimEnable: (context, event) => {
|
|
175
168
|
const { collectAvailable, remainingCount, dailyRedemptionLimit, actualRebateAmount, singleMinimumAmountReceive } = context
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
splitArray.forEach((item) => {
|
|
180
|
-
combindString += item
|
|
181
|
-
})
|
|
182
|
-
} else {
|
|
183
|
-
combindString = actualRebateAmount
|
|
184
|
-
}
|
|
185
|
-
const deformatRebateAmount = parseFloat(combindString)
|
|
169
|
+
const formattedSingleMinimumAmountReceive = parseFloat(singleMinimumAmountReceive.replace(/,/g, ''))
|
|
170
|
+
const formattedActualRebateAmount = parseFloat(actualRebateAmount.replace(/,/g, ''))
|
|
171
|
+
|
|
186
172
|
return (
|
|
187
173
|
collectAvailable &&
|
|
188
174
|
parseInt(`${remainingCount}`) < parseInt(`${dailyRedemptionLimit}`) &&
|
|
189
|
-
|
|
175
|
+
parseFloat(`${formattedActualRebateAmount}`) >= parseFloat(`${formattedSingleMinimumAmountReceive}`)
|
|
190
176
|
)
|
|
191
177
|
},
|
|
192
178
|
isClaimSuccess: (context, event) => {
|
|
@@ -10,13 +10,13 @@ export default function (request) {
|
|
|
10
10
|
context: {
|
|
11
11
|
tick: 6000,
|
|
12
12
|
tabs: [],
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
cashRain: {},
|
|
14
|
+
deposit: {},
|
|
15
|
+
roulette: {},
|
|
16
|
+
jackpot: {},
|
|
17
|
+
bigWin: {},
|
|
18
|
+
maxBet: {},
|
|
19
|
+
withdraw: {},
|
|
20
20
|
},
|
|
21
21
|
states: {
|
|
22
22
|
fetching: {
|
|
@@ -62,13 +62,13 @@ export default function (request) {
|
|
|
62
62
|
return 'withdraw'
|
|
63
63
|
}
|
|
64
64
|
}),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
cashRain: (event.data || []).find((item) => item.type === 'CASH_RAIN') || {},
|
|
66
|
+
deposit: (event.data || []).find((item) => item.type === 'DEPOSIT') || {},
|
|
67
|
+
roulette: (event.data || []).find((item) => item.type === 'FREE_ROULETTE_SPIN') || {},
|
|
68
|
+
jackpot: (event.data || []).find((item) => item.type === 'JACKPOT') || {},
|
|
69
|
+
bigWin: (event.data || []).find((item) => item.type === 'WIN_SCORE') || {},
|
|
70
|
+
maxBet: (event.data || []).find((item) => item.type === 'WIN_MULTIPLIER') || {},
|
|
71
|
+
withdraw: (event.data || []).find((item) => item.type === 'WITHDRAW') || {},
|
|
72
72
|
}
|
|
73
73
|
}),
|
|
74
74
|
},
|