@jetthai/cuora 1.1.406-dev-1 → 1.1.406-dev-2
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 +2 -0
- package/package.json +1 -1
- package/src/machine/game_v2_1.js +12 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.406-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.406-dev-1...v1.1.406-dev-2) (2025-12-22)
|
|
6
|
+
|
|
5
7
|
### [1.1.406-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.406...v1.1.406-dev-1) (2025-12-19)
|
|
6
8
|
|
|
7
9
|
### [1.1.406](https://github.com/jetthai/cuora-module/compare/v1.1.405...v1.1.406) (2025-12-16)
|
package/package.json
CHANGED
package/src/machine/game_v2_1.js
CHANGED
|
@@ -549,7 +549,12 @@ export default function (request) {
|
|
|
549
549
|
},
|
|
550
550
|
getPageContent: async (context, event) => {
|
|
551
551
|
const { room, index, additionEnable, staticData } = context
|
|
552
|
-
|
|
552
|
+
// 如果沒有 categoryId 不往下執行
|
|
553
|
+
if (!room?.categoryId) {
|
|
554
|
+
console.error('No room categoryId found for updating content')
|
|
555
|
+
return
|
|
556
|
+
}
|
|
557
|
+
if (room?.categoryId === GAME_SEARCH) {
|
|
553
558
|
return
|
|
554
559
|
} else if (!request.getToken()) {
|
|
555
560
|
const list = staticData.find((data) => data.category == room.categoryId)?.info || []
|
|
@@ -571,7 +576,12 @@ export default function (request) {
|
|
|
571
576
|
},
|
|
572
577
|
updatePageContent: async (context, event) => {
|
|
573
578
|
const { room, content, index, additionEnable } = context
|
|
574
|
-
|
|
579
|
+
// 如果沒有 categoryId 不往下執行
|
|
580
|
+
if (!room?.categoryId) {
|
|
581
|
+
console.error('No room categoryId found for updating content')
|
|
582
|
+
return []
|
|
583
|
+
}
|
|
584
|
+
if (room?.categoryId === GAME_SEARCH) {
|
|
575
585
|
return []
|
|
576
586
|
} else if (!request.getToken()) {
|
|
577
587
|
return []
|