@jetthai/cuora 1.1.336-dev-5 → 1.1.336-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 +3 -25
- package/package.json +1 -1
- package/src/api/auth.js +2 -2
- package/src/machine/auth.js +2 -18
- 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/src/machine/inbox.js +2 -2
- package/src/request/request.js +1 -0
- package/src/util/deviceToken.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,33 +2,11 @@
|
|
|
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-
|
|
5
|
+
### [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)
|
|
6
6
|
|
|
7
|
-
### [1.1.336-dev-
|
|
7
|
+
### [1.1.336-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.336...v1.1.336-dev-6) (2025-01-24)
|
|
8
8
|
|
|
9
|
-
### [1.1.336
|
|
10
|
-
|
|
11
|
-
### [1.1.336](https://github.com/jetthai/cuora-module/compare/v1.1.333-dev-8...v1.1.336) (2025-01-14)
|
|
12
|
-
|
|
13
|
-
### [1.1.336-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.336-dev-1...v1.1.336-dev-2) (2025-01-15)
|
|
14
|
-
|
|
15
|
-
### [1.1.336-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.333-dev-8...v1.1.336-dev-1) (2025-01-15)
|
|
16
|
-
|
|
17
|
-
### [1.1.335](https://github.com/jetthai/cuora-module/compare/v1.1.334...v1.1.335) (2025-01-13)
|
|
18
|
-
|
|
19
|
-
### [1.1.334](https://github.com/jetthai/cuora-module/compare/v1.1.333-dev-6...v1.1.334) (2025-01-13)
|
|
20
|
-
|
|
21
|
-
### [1.1.333-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.333-dev-7...v1.1.333-dev-8) (2025-01-13)
|
|
22
|
-
|
|
23
|
-
### [1.1.333-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.333-dev-6...v1.1.333-dev-7) (2025-01-13)
|
|
24
|
-
|
|
25
|
-
### [1.1.333-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.333-dev-5...v1.1.333-dev-6) (2025-01-13)
|
|
26
|
-
|
|
27
|
-
### [1.1.333-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.333-dev-4...v1.1.333-dev-5) (2025-01-10)
|
|
28
|
-
|
|
29
|
-
### [1.1.333-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.333-dev-3...v1.1.333-dev-4) (2025-01-10)
|
|
30
|
-
|
|
31
|
-
### [1.1.333-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.333...v1.1.333-dev-3) (2025-01-10)
|
|
9
|
+
### [1.1.336](https://github.com/jetthai/cuora-module/compare/v1.1.335...v1.1.336) (2025-01-14)
|
|
32
10
|
|
|
33
11
|
### [1.1.335](https://github.com/jetthai/cuora-module/compare/v1.1.334...v1.1.335) (2025-01-13)
|
|
34
12
|
|
package/package.json
CHANGED
package/src/api/auth.js
CHANGED
|
@@ -5,10 +5,10 @@ export default {
|
|
|
5
5
|
method: 'post',
|
|
6
6
|
isPublic: true,
|
|
7
7
|
}),
|
|
8
|
-
login: ({ username, password, provider, countryCode, phone, email, dt, reCaptchaToken
|
|
8
|
+
login: ({ username, password, provider, countryCode, phone, email, dt, reCaptchaToken }) => ({
|
|
9
9
|
url: 'login',
|
|
10
10
|
method: 'post',
|
|
11
|
-
params: { username, password, provider, countryCode, phone, email, dt
|
|
11
|
+
params: { username, password, provider, countryCode, phone, email, dt },
|
|
12
12
|
isPublic: true,
|
|
13
13
|
headers: { 'x-access-captcha': reCaptchaToken },
|
|
14
14
|
}),
|
package/src/machine/auth.js
CHANGED
|
@@ -33,7 +33,6 @@ export default function (request) {
|
|
|
33
33
|
email: null,
|
|
34
34
|
username: null,
|
|
35
35
|
password: null,
|
|
36
|
-
additionalUserInfo: null,
|
|
37
36
|
},
|
|
38
37
|
countryAbbr: null,
|
|
39
38
|
userInfo: {},
|
|
@@ -272,10 +271,6 @@ export default function (request) {
|
|
|
272
271
|
LOGIN_APP: {
|
|
273
272
|
target: '.authenticationApp',
|
|
274
273
|
},
|
|
275
|
-
LOGIN_TELEGRAM: {
|
|
276
|
-
target: '.authentication',
|
|
277
|
-
actions: 'setLoginTelegram',
|
|
278
|
-
},
|
|
279
274
|
SET_PLAY: {
|
|
280
275
|
actions: 'setPlay',
|
|
281
276
|
},
|
|
@@ -358,17 +353,6 @@ export default function (request) {
|
|
|
358
353
|
},
|
|
359
354
|
}
|
|
360
355
|
}),
|
|
361
|
-
setLoginTelegram: assign((context, event) => {
|
|
362
|
-
const { loginType, additionalUserInfo, isSignature } = event.data
|
|
363
|
-
return {
|
|
364
|
-
loginData: {
|
|
365
|
-
provider: 'telegram',
|
|
366
|
-
loginType,
|
|
367
|
-
additionalUserInfo,
|
|
368
|
-
isSignature,
|
|
369
|
-
},
|
|
370
|
-
}
|
|
371
|
-
}),
|
|
372
356
|
fetchToken: assign((context, event) => {
|
|
373
357
|
const token = storage.get(tokenKey)
|
|
374
358
|
return {
|
|
@@ -430,7 +414,7 @@ export default function (request) {
|
|
|
430
414
|
}),
|
|
431
415
|
redirectTo3Party: async (context, event) => {
|
|
432
416
|
const { provider, channel, subchannel, fc } = event.data
|
|
433
|
-
const deviceTokenEnable = context.siteConfig?.dtVerify
|
|
417
|
+
const deviceTokenEnable = context.siteConfig?.dtVerify === '1'
|
|
434
418
|
|
|
435
419
|
const dt = await getDeviceToken({
|
|
436
420
|
fpToken,
|
|
@@ -513,7 +497,7 @@ export default function (request) {
|
|
|
513
497
|
return await request.send(user.getUserInfo())
|
|
514
498
|
},
|
|
515
499
|
checkDeviceToken: async (context, event) => {
|
|
516
|
-
const deviceTokenEnable = context.siteConfig?.dtVerify
|
|
500
|
+
const deviceTokenEnable = context.siteConfig?.dtVerify === '1'
|
|
517
501
|
if (deviceTokenEnable) {
|
|
518
502
|
const { exist } = await request.send(user.checkDt())
|
|
519
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 } = siteConfig
|
|
59
|
-
return !!selectedCrypto && walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
58
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig
|
|
59
|
+
return !!selectedCrypto && walletMode === '4' && bonusPreviewEnable === '1' && 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 } = siteConfig
|
|
76
|
-
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
75
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig
|
|
76
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && 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 } = siteConfig
|
|
53
|
-
return !!selectedCard && walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
52
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig
|
|
53
|
+
return !!selectedCard && walletMode === '4' && bonusPreviewEnable === '1' && 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 } = siteConfig
|
|
82
|
-
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
81
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig
|
|
82
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && 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 } = siteConfig
|
|
220
|
-
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
219
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig
|
|
220
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && 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 } = siteConfig
|
|
53
|
-
return !!selectedQrcode && walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
52
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig
|
|
53
|
+
return !!selectedQrcode && walletMode === '4' && bonusPreviewEnable === '1' && 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 } = siteConfig
|
|
90
|
-
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
89
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig
|
|
90
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && 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 } = siteConfig
|
|
318
|
-
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
317
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig
|
|
318
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && 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 } = siteConfig
|
|
78
|
-
return walletMode === '4' && bonusPreviewEnable && promotion.activityNo != 'none'
|
|
77
|
+
const { walletMode = '', bonusPreviewEnable = '0' } = siteConfig
|
|
78
|
+
return walletMode === '4' && bonusPreviewEnable === '1' && promotion.activityNo != 'none'
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
81
|
{ target: 'loaded' },
|
package/src/machine/inbox.js
CHANGED
|
@@ -344,9 +344,9 @@ export default function (request) {
|
|
|
344
344
|
const isCustomerReply = data[0]?.from === 'SYSTEM'
|
|
345
345
|
let combindedContent = ''
|
|
346
346
|
if (isCustomerReply) {
|
|
347
|
-
combindedContent = data[0]?.content || '' + '\n' + data[1]?.content || ''
|
|
347
|
+
combindedContent = '-\n-------------------------\n' + data[0]?.content || '' + '\n-------------------------\n' + data[1]?.content || ''
|
|
348
348
|
} else {
|
|
349
|
-
combindedContent =
|
|
349
|
+
combindedContent = `-\n-------------------------\n${data[0]?.content || ''}`
|
|
350
350
|
}
|
|
351
351
|
return {
|
|
352
352
|
messageDetail: data,
|
package/src/request/request.js
CHANGED
package/src/util/deviceToken.js
CHANGED
|
@@ -23,6 +23,7 @@ const getDeviceToken = async ({ fpToken, sentry, hosts, enable = true }) => {
|
|
|
23
23
|
throw new Error('[Device Token] No token from FingerprintJS.')
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
console.log('[Device Token]', `${dt} from ${endpoints}`)
|
|
26
27
|
sentry?.setTag('dt', dt)
|
|
27
28
|
} catch (error) {
|
|
28
29
|
console.error('[Device Token]', `${dt} from ${endpoints}`, error)
|