@jetthai/cuora 1.1.389 → 1.1.391
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/activity.js +1 -0
- package/src/machine/side_v2.js +2 -2
- package/src/request/request.js +1 -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.391](https://github.com/jetthai/cuora-module/compare/v1.1.390...v1.1.391) (2025-10-15)
|
|
6
|
+
|
|
7
|
+
### [1.1.390](https://github.com/jetthai/cuora-module/compare/v1.1.389...v1.1.390) (2025-10-13)
|
|
8
|
+
|
|
5
9
|
### [1.1.389](https://github.com/jetthai/cuora-module/compare/v1.1.388...v1.1.389) (2025-10-07)
|
|
6
10
|
|
|
7
11
|
### [1.1.388](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.388) (2025-10-07)
|
package/package.json
CHANGED
package/src/api/activity.js
CHANGED
|
@@ -85,6 +85,7 @@ export default {
|
|
|
85
85
|
exchange: (data) => ({ url: 'activities/exchange', method: 'post', params: data }),
|
|
86
86
|
collect: (data) => ({ url: 'activities/collect', method: 'post', params: data }),
|
|
87
87
|
getVipTable: ({ appSecret }) => ({ url: 'activities/viptable', method: 'get', params: { appSecret } }),
|
|
88
|
+
getLevelBonusInfo: () => ({ url: 'activities/level-bonus/info', method: 'get' }),
|
|
88
89
|
getRankingList: () => ({ url: 'activities/ranking', method: 'get' }),
|
|
89
90
|
exchangeDiamond: ({ activityNo, exchangeAward = [] }) => ({
|
|
90
91
|
url: 'activities/exchange/diamond',
|
package/src/machine/side_v2.js
CHANGED
|
@@ -176,9 +176,9 @@ function isItemInMenu(targetItem, menuList) {
|
|
|
176
176
|
if (result) {
|
|
177
177
|
return true
|
|
178
178
|
} else {
|
|
179
|
-
if (currentItem
|
|
179
|
+
if (currentItem?.categoryId === targetItem?.categoryId) {
|
|
180
180
|
return true
|
|
181
|
-
} else if (currentItem
|
|
181
|
+
} else if (currentItem?.sub?.length) {
|
|
182
182
|
return isItemInMenu(targetItem, currentItem.sub)
|
|
183
183
|
} else {
|
|
184
184
|
return false
|
package/src/request/request.js
CHANGED