@jetthai/cuora 1.1.336-dev-8 → 1.1.336-dev-10
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 +4 -0
- package/package.json +1 -1
- package/src/api/payment.js +2 -2
- package/src/machine/auth.js +2 -2
- package/src/machine/common.js +1 -1
- package/src/machine/deposit/crypto_button.js +2 -2
- package/src/machine/deposit/float.js +2 -2
- package/src/machine/deposit/loadcard_vn.js +6 -6
- package/src/machine/deposit/qrcode_v2.js +6 -6
- package/src/machine/deposit/vpay.js +2 -2
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.336-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.336-dev-9...v1.1.336-dev-10) (2025-02-04)
|
|
6
|
+
|
|
7
|
+
### [1.1.336-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.336-dev-8...v1.1.336-dev-9) (2025-02-03)
|
|
8
|
+
|
|
5
9
|
### [1.1.336-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.336-dev-7...v1.1.336-dev-8) (2025-02-03)
|
|
6
10
|
|
|
7
11
|
### [1.1.336-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.336-dev-6...v1.1.336-dev-7) (2025-01-24)
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -222,10 +222,10 @@ export default {
|
|
|
222
222
|
params: { transferType: 'WITHDRAW', amount },
|
|
223
223
|
}),
|
|
224
224
|
getPromotionsList: () => ({ url: `payment/v2/bankWallet/promotions`, method: 'get' }),
|
|
225
|
-
getWithdrawRulePreview: ({ applyType, applyNo, amount }) => ({
|
|
225
|
+
getWithdrawRulePreview: ({ applyType, applyNo, amount, isFreeGame }) => ({
|
|
226
226
|
url: `payment/v2/bankWallet/promotion/preview`,
|
|
227
227
|
method: 'post',
|
|
228
|
-
params: { applyType, applyNo, amount },
|
|
228
|
+
params: { applyType, applyNo, amount, isFreeGame },
|
|
229
229
|
}),
|
|
230
230
|
applyPromotions: ({ promotionsNo, amount }) => ({
|
|
231
231
|
url: `payment/v2/bankWallet/promotion/apply`,
|
package/src/machine/auth.js
CHANGED
|
@@ -414,7 +414,7 @@ export default function (request) {
|
|
|
414
414
|
}),
|
|
415
415
|
redirectTo3Party: async (context, event) => {
|
|
416
416
|
const { provider, channel, subchannel, fc } = event.data
|
|
417
|
-
const deviceTokenEnable = context.siteConfig?.dtVerify
|
|
417
|
+
const deviceTokenEnable = context.siteConfig?.dtVerify
|
|
418
418
|
|
|
419
419
|
const dt = await getDeviceToken({
|
|
420
420
|
fpToken,
|
|
@@ -497,7 +497,7 @@ export default function (request) {
|
|
|
497
497
|
return await request.send(user.getUserInfo())
|
|
498
498
|
},
|
|
499
499
|
checkDeviceToken: async (context, event) => {
|
|
500
|
-
const deviceTokenEnable = context.siteConfig?.dtVerify
|
|
500
|
+
const deviceTokenEnable = context.siteConfig?.dtVerify
|
|
501
501
|
if (deviceTokenEnable) {
|
|
502
502
|
const { exist } = await request.send(user.checkDt())
|
|
503
503
|
if (!exist) {
|
package/src/machine/common.js
CHANGED
|
@@ -55,8 +55,8 @@ export default function (request) {
|
|
|
55
55
|
target: 'fetching',
|
|
56
56
|
cond: (context, event) => {
|
|
57
57
|
const { siteConfig = {}, promotion = {}, selectedCrypto } = context
|
|
58
|
-
const { walletMode = '', bonusPreviewEnable
|
|
59
|
-
return !!selectedCrypto && walletMode === '4' && bonusPreviewEnable
|
|
58
|
+
const { walletMode = '', bonusPreviewEnable } = siteConfig
|
|
59
|
+
return !!selectedCrypto && walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
{ target: 'loaded' },
|
|
@@ -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 { walletMode = '', bonusPreviewEnable
|
|
76
|
-
return walletMode === '4' && bonusPreviewEnable
|
|
75
|
+
const { walletMode = '', bonusPreviewEnable } = siteConfig
|
|
76
|
+
return walletMode === '4' && 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 { walletMode = '', bonusPreviewEnable
|
|
53
|
-
return !!selectedCard && walletMode === '4' && bonusPreviewEnable
|
|
52
|
+
const { walletMode = '', bonusPreviewEnable } = siteConfig
|
|
53
|
+
return !!selectedCard && walletMode === '4' && 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 { walletMode = '', bonusPreviewEnable
|
|
82
|
-
return walletMode === '4' && bonusPreviewEnable
|
|
81
|
+
const { walletMode = '', bonusPreviewEnable } = siteConfig
|
|
82
|
+
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
85
|
{
|
|
@@ -216,8 +216,8 @@ export default function (request) {
|
|
|
216
216
|
actions: 'setCard',
|
|
217
217
|
cond: (context, event) => {
|
|
218
218
|
const { siteConfig = {}, promotion = {} } = context
|
|
219
|
-
const { walletMode = '', bonusPreviewEnable
|
|
220
|
-
return walletMode === '4' && bonusPreviewEnable
|
|
219
|
+
const { walletMode = '', bonusPreviewEnable } = siteConfig
|
|
220
|
+
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
221
221
|
},
|
|
222
222
|
},
|
|
223
223
|
{
|
|
@@ -49,8 +49,8 @@ export default function (request) {
|
|
|
49
49
|
target: 'fetching',
|
|
50
50
|
cond: (context, event) => {
|
|
51
51
|
const { siteConfig = {}, promotion = {}, selectedQrcode } = context
|
|
52
|
-
const { walletMode = '', bonusPreviewEnable
|
|
53
|
-
return !!selectedQrcode && walletMode === '4' && bonusPreviewEnable
|
|
52
|
+
const { walletMode = '', bonusPreviewEnable } = siteConfig
|
|
53
|
+
return !!selectedQrcode && walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
{
|
|
@@ -86,8 +86,8 @@ export default function (request) {
|
|
|
86
86
|
actions: 'setQrcode',
|
|
87
87
|
cond: (context, event) => {
|
|
88
88
|
const { siteConfig = {}, promotion = {} } = context
|
|
89
|
-
const { walletMode = '', bonusPreviewEnable
|
|
90
|
-
return walletMode === '4' && bonusPreviewEnable
|
|
89
|
+
const { walletMode = '', bonusPreviewEnable } = siteConfig
|
|
90
|
+
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
93
|
{
|
|
@@ -314,8 +314,8 @@ export default function (request) {
|
|
|
314
314
|
actions: 'setQrcode',
|
|
315
315
|
cond: (context, event) => {
|
|
316
316
|
const { siteConfig = {}, promotion = {} } = context
|
|
317
|
-
const { walletMode = '', bonusPreviewEnable
|
|
318
|
-
return walletMode === '4' && bonusPreviewEnable
|
|
317
|
+
const { walletMode = '', bonusPreviewEnable } = siteConfig
|
|
318
|
+
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
319
319
|
},
|
|
320
320
|
},
|
|
321
321
|
{
|
|
@@ -74,8 +74,8 @@ export default function (request) {
|
|
|
74
74
|
target: 'fetching',
|
|
75
75
|
cond: (context, event) => {
|
|
76
76
|
const { siteConfig = {}, promotion = {} } = context
|
|
77
|
-
const { walletMode = '', bonusPreviewEnable
|
|
78
|
-
return walletMode === '4' && bonusPreviewEnable
|
|
77
|
+
const { walletMode = '', bonusPreviewEnable } = siteConfig
|
|
78
|
+
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
81
|
{ target: 'loaded' },
|