@jetthai/cuora 1.1.366-dev-5 → 1.1.366-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 +8 -0
- package/package.json +1 -1
- package/src/machine/inbox.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.366-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.366-dev-6...v1.1.366-dev-7) (2025-07-31)
|
|
6
|
+
|
|
7
|
+
### [1.1.366-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.366-dev-5...v1.1.366-dev-6) (2025-07-31)
|
|
8
|
+
|
|
9
|
+
### [1.1.368](https://github.com/jetthai/cuora-module/compare/v1.1.366-dev-4...v1.1.368) (2025-07-28)
|
|
10
|
+
|
|
11
|
+
### [1.1.367](https://github.com/jetthai/cuora-module/compare/v1.1.366-v2api-2...v1.1.367) (2025-07-22)
|
|
12
|
+
|
|
5
13
|
### [1.1.366-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.366-dev-4...v1.1.366-dev-5) (2025-07-29)
|
|
6
14
|
|
|
7
15
|
### [1.1.366-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.366-v2api-2...v1.1.366-dev-4) (2025-07-25)
|
package/package.json
CHANGED
package/src/machine/inbox.js
CHANGED
|
@@ -424,7 +424,7 @@ export default function (request) {
|
|
|
424
424
|
fetchMessages: async (context, event) => {
|
|
425
425
|
const lang = context.lang
|
|
426
426
|
const { isRewardListEnable, currentTab, inbox } = JSON.parse(JSON.stringify(context))
|
|
427
|
-
if (isRewardListEnable && (currentTab === 'REWARD' || currentTab === 'DIAMOND')) {
|
|
427
|
+
if (isRewardListEnable && (currentTab === 'REWARD' || currentTab === 'DIAMOND' || currentTab === 'FREE_GAME')) {
|
|
428
428
|
const { data } = await request.send(activity.getRewardList({ count: 30, appSecret, lang }))
|
|
429
429
|
inbox[currentTab] = { data, page: 0, totalPage: 1 }
|
|
430
430
|
} else {
|
|
@@ -438,6 +438,9 @@ export default function (request) {
|
|
|
438
438
|
},
|
|
439
439
|
reFetchMessages: async (context, event) => {
|
|
440
440
|
const { currentTab, inbox } = JSON.parse(JSON.stringify(context))
|
|
441
|
+
|
|
442
|
+
if (currentTab === 'FREE_GAME') return inbox
|
|
443
|
+
|
|
441
444
|
const { data, ...rest } = await request.send(mailbox.getMessageList({ type: currentTab, page: 0 }))
|
|
442
445
|
let formattedData = []
|
|
443
446
|
formattedData = data?.map((item) => ({ ...item, isSelected: false }))
|