@jetthai/cuora 1.1.353-dev-11 → 1.1.353-dev-13
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
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.353-dev-13](https://github.com/jetthai/cuora-module/compare/v1.1.353-dev-12...v1.1.353-dev-13) (2025-04-21)
|
|
6
|
+
|
|
7
|
+
### [1.1.354](https://github.com/jetthai/cuora-module/compare/v1.1.353-dev-6...v1.1.354) (2025-04-14)
|
|
8
|
+
|
|
9
|
+
### [1.1.354](https://github.com/jetthai/cuora-module/compare/v1.1.353-dev-6...v1.1.354) (2025-04-14)
|
|
10
|
+
|
|
11
|
+
### [1.1.353-dev-12](https://github.com/jetthai/cuora-module/compare/v1.1.353-dev-11...v1.1.353-dev-12) (2025-04-20)
|
|
12
|
+
|
|
5
13
|
### [1.1.353-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.353-dev-10...v1.1.353-dev-11) (2025-04-16)
|
|
6
14
|
|
|
7
15
|
### [1.1.353-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.353-dev-9...v1.1.353-dev-10) (2025-04-16)
|
package/package.json
CHANGED
|
@@ -33,6 +33,10 @@ export default function (request) {
|
|
|
33
33
|
target: 'loading',
|
|
34
34
|
actions: 'setActivityNo',
|
|
35
35
|
},
|
|
36
|
+
SET_ACTIVITY: {
|
|
37
|
+
target: 'loading',
|
|
38
|
+
actions: 'setActivity',
|
|
39
|
+
},
|
|
36
40
|
},
|
|
37
41
|
},
|
|
38
42
|
loading: {
|
|
@@ -87,8 +91,18 @@ export default function (request) {
|
|
|
87
91
|
}
|
|
88
92
|
}),
|
|
89
93
|
setActivityDetail: assign((context, event) => {
|
|
94
|
+
let activityDetail = event.data
|
|
95
|
+
if (context.activityDetail && (!event.data || Object.keys(event.data).length === 0)) {
|
|
96
|
+
activityDetail = context.activityDetail
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
activityDetail,
|
|
100
|
+
}
|
|
101
|
+
}),
|
|
102
|
+
setActivity: assign((context, event) => {
|
|
90
103
|
return {
|
|
91
|
-
activityDetail: event.data,
|
|
104
|
+
activityDetail: event.data.activityDetail,
|
|
105
|
+
activityNo: event.data.activityNo,
|
|
92
106
|
}
|
|
93
107
|
}),
|
|
94
108
|
setInitData: assign((context, event) => {
|
|
@@ -111,18 +125,12 @@ export default function (request) {
|
|
|
111
125
|
|
|
112
126
|
let nextDepositLimit = '0'
|
|
113
127
|
let nextTurnoverLimit = '0'
|
|
114
|
-
let currentTurnover = '0'
|
|
115
|
-
let currentDeposit = '0'
|
|
116
128
|
const maxReachLevel = conditions?.[conditions?.length - 1]
|
|
117
129
|
// 若已達到最高等級,所有數值皆以最高等級顯示
|
|
118
130
|
if (maxReachLevel && nextCycleCardCurrentReachLevel?.title === maxReachLevel.title) {
|
|
119
|
-
currentDeposit = maxReachLevel.depositLimit
|
|
120
|
-
currentTurnover = maxReachLevel.turnoverLimit
|
|
121
131
|
nextDepositLimit = maxReachLevel.depositLimit
|
|
122
132
|
nextTurnoverLimit = maxReachLevel.turnoverLimit
|
|
123
133
|
} else {
|
|
124
|
-
currentDeposit = accumulateTotalDeposit
|
|
125
|
-
currentTurnover = accumulateTotalValidTurnover
|
|
126
134
|
nextDepositLimit = nextCycleCardNextReachLevel?.depositLimit
|
|
127
135
|
nextTurnoverLimit = nextCycleCardNextReachLevel?.turnoverLimit
|
|
128
136
|
}
|
|
@@ -139,8 +147,8 @@ export default function (request) {
|
|
|
139
147
|
lastCycleCard,
|
|
140
148
|
nextDepositLimit,
|
|
141
149
|
nextTurnoverLimit,
|
|
142
|
-
accumulateTotalDeposit
|
|
143
|
-
accumulateTotalValidTurnover
|
|
150
|
+
accumulateTotalDeposit,
|
|
151
|
+
accumulateTotalValidTurnover,
|
|
144
152
|
retainAmount,
|
|
145
153
|
yesterdayRewardsAmount,
|
|
146
154
|
calculateWalletMode,
|
package/src/machine/common.js
CHANGED
|
@@ -293,7 +293,8 @@ export default function (request) {
|
|
|
293
293
|
return { announcementList: { data } }
|
|
294
294
|
}),
|
|
295
295
|
setFeeds: assign((context, event) => {
|
|
296
|
-
const { announcementList, broadcastList, mailBoxInfo
|
|
296
|
+
const { announcementList, broadcastList, mailBoxInfo } = event.data
|
|
297
|
+
const { siteConfig } = context
|
|
297
298
|
const promotions = announcementList?.announcements?.filter?.((item) => item.category === 3) || []
|
|
298
299
|
const customerMessageEnable = siteConfig?.csChat?.some((item) => item.enable && item.name === 'customermessage')
|
|
299
300
|
if (!customerMessageEnable) {
|
package/src/machine/setting.js
CHANGED
|
@@ -33,12 +33,10 @@ export default function () {
|
|
|
33
33
|
return { ...setting }
|
|
34
34
|
}),
|
|
35
35
|
setSetting: assign((context, event) => {
|
|
36
|
-
console.log('*[DEV_ONLY]預設SETTING')
|
|
37
36
|
const { sound, music, locale } = event.data
|
|
38
37
|
return { sound, music, locale }
|
|
39
38
|
}),
|
|
40
39
|
saveSetting: assign((context, event) => {
|
|
41
|
-
console.log('*[DEV_ONLY]修改SETTING')
|
|
42
40
|
const { sound, music, locale } = event.data
|
|
43
41
|
localStorage.setItem('setting', JSON.stringify({ sound, music, locale }))
|
|
44
42
|
return { sound, music, locale }
|