@jetthai/cuora 1.1.386 → 1.1.387-dev
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/machine/game_v2_1.js +1 -56
- package/src/machine/user_sign_up.js +4 -0
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.387-dev](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.387-dev) (2025-09-26)
|
|
6
|
+
|
|
7
|
+
### [1.1.387](https://github.com/jetthai/cuora-module/compare/v1.1.386...v1.1.387) (2025-09-23)
|
|
8
|
+
|
|
5
9
|
### [1.1.386](https://github.com/jetthai/cuora-module/compare/v1.1.385...v1.1.386) (2025-09-19)
|
|
6
10
|
|
|
7
11
|
### [1.1.385](https://github.com/jetthai/cuora-module/compare/v1.1.384...v1.1.385) (2025-09-17)
|
package/package.json
CHANGED
package/src/machine/game_v2_1.js
CHANGED
|
@@ -5,7 +5,7 @@ import { GAME_SEARCH } from '../util/constant.js'
|
|
|
5
5
|
|
|
6
6
|
// 對應 intersectionObserver 版本
|
|
7
7
|
export default function (request) {
|
|
8
|
-
const { appSecret
|
|
8
|
+
const { appSecret } = request.config
|
|
9
9
|
return createMachine(
|
|
10
10
|
{
|
|
11
11
|
id: 'game',
|
|
@@ -518,17 +518,6 @@ export default function (request) {
|
|
|
518
518
|
} else if (additionEnable) {
|
|
519
519
|
const param = { categoryId: room.categoryId, index, appSecret }
|
|
520
520
|
requestChain = event.data.list.map((category, b) => {
|
|
521
|
-
// 參數必填檢查
|
|
522
|
-
if (!category?.id) {
|
|
523
|
-
sentry?.captureMessage('PARAMETER_ERROR', {
|
|
524
|
-
level: 'warning',
|
|
525
|
-
tags: {
|
|
526
|
-
caller: 'batchFetch',
|
|
527
|
-
action: 'getListCategory',
|
|
528
|
-
param: JSON.stringify(category?.id),
|
|
529
|
-
},
|
|
530
|
-
})
|
|
531
|
-
}
|
|
532
521
|
return request
|
|
533
522
|
.send(
|
|
534
523
|
api.getListCategory({
|
|
@@ -539,32 +528,10 @@ export default function (request) {
|
|
|
539
528
|
)
|
|
540
529
|
.then((res) => Object.assign({ downLine: res.data.filter((item) => item.isGame).slice(0, 20) }, category))
|
|
541
530
|
})
|
|
542
|
-
// 參數必填檢查
|
|
543
|
-
if (!param?.categoryId) {
|
|
544
|
-
sentry?.captureMessage('PARAMETER_ERROR', {
|
|
545
|
-
level: 'warning',
|
|
546
|
-
tags: {
|
|
547
|
-
caller: 'batchFetch',
|
|
548
|
-
action: 'getListAddition',
|
|
549
|
-
param: JSON.stringify(param),
|
|
550
|
-
},
|
|
551
|
-
})
|
|
552
|
-
}
|
|
553
531
|
const result = await Promise.all([...requestChain, request.send(api.getListAddition(param))])
|
|
554
532
|
return result.filter((item) => item.downLine.length > 0).slice(0, 6)
|
|
555
533
|
} else {
|
|
556
534
|
requestChain = event.data.list.map((category, b) => {
|
|
557
|
-
// 參數必填檢查
|
|
558
|
-
if (!category?.id) {
|
|
559
|
-
sentry?.captureMessage('PARAMETER_ERROR', {
|
|
560
|
-
level: 'warning',
|
|
561
|
-
tags: {
|
|
562
|
-
caller: 'batchFetch/else',
|
|
563
|
-
action: 'getListCategory',
|
|
564
|
-
param: JSON.stringify(category?.id),
|
|
565
|
-
},
|
|
566
|
-
})
|
|
567
|
-
}
|
|
568
535
|
return request
|
|
569
536
|
.send(
|
|
570
537
|
api.getListCategory({
|
|
@@ -595,31 +562,9 @@ export default function (request) {
|
|
|
595
562
|
]
|
|
596
563
|
} else if (additionEnable) {
|
|
597
564
|
const param = { categoryId: room.categoryId, index, appSecret }
|
|
598
|
-
// 參數必填檢查
|
|
599
|
-
if (!param?.categoryId) {
|
|
600
|
-
sentry?.captureMessage('PARAMETER_ERROR', {
|
|
601
|
-
level: 'warning',
|
|
602
|
-
tags: {
|
|
603
|
-
caller: 'getPageContent',
|
|
604
|
-
action: 'getListCategory/getListAddition',
|
|
605
|
-
param: JSON.stringify(param),
|
|
606
|
-
},
|
|
607
|
-
})
|
|
608
|
-
}
|
|
609
565
|
return await Promise.all([request.send(api.getListCategory(param)), request.send(api.getListAddition(param))])
|
|
610
566
|
} else {
|
|
611
567
|
const param = { categoryId: room.categoryId, index, appSecret }
|
|
612
|
-
// 參數必填檢查
|
|
613
|
-
if (!param?.categoryId) {
|
|
614
|
-
sentry?.captureMessage('PARAMETER_ERROR', {
|
|
615
|
-
level: 'warning',
|
|
616
|
-
tags: {
|
|
617
|
-
caller: 'getPageContent/else',
|
|
618
|
-
action: 'getListCategory',
|
|
619
|
-
param: JSON.stringify(param),
|
|
620
|
-
},
|
|
621
|
-
})
|
|
622
|
-
}
|
|
623
568
|
return await Promise.all([request.send(api.getListCategory(param))])
|
|
624
569
|
}
|
|
625
570
|
},
|
|
@@ -76,6 +76,7 @@ export default function (request) {
|
|
|
76
76
|
}),
|
|
77
77
|
setSignUpId: assign((context, event) => {
|
|
78
78
|
const {
|
|
79
|
+
email,
|
|
79
80
|
username,
|
|
80
81
|
nick_name,
|
|
81
82
|
password,
|
|
@@ -93,6 +94,7 @@ export default function (request) {
|
|
|
93
94
|
return {
|
|
94
95
|
signUpData: {
|
|
95
96
|
provider: 'local',
|
|
97
|
+
email,
|
|
96
98
|
username,
|
|
97
99
|
nick_name,
|
|
98
100
|
password,
|
|
@@ -111,6 +113,7 @@ export default function (request) {
|
|
|
111
113
|
}),
|
|
112
114
|
setSignUpPhone: assign((context, event) => {
|
|
113
115
|
const {
|
|
116
|
+
email,
|
|
114
117
|
countryCode,
|
|
115
118
|
phone,
|
|
116
119
|
nick_name,
|
|
@@ -127,6 +130,7 @@ export default function (request) {
|
|
|
127
130
|
return {
|
|
128
131
|
signUpData: {
|
|
129
132
|
provider: 'phone',
|
|
133
|
+
email,
|
|
130
134
|
countryCode,
|
|
131
135
|
phone,
|
|
132
136
|
nick_name,
|