@jetthai/cuora 1.1.353-dev-12 → 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,12 @@
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
+
5
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)
6
12
 
7
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.353-dev-12",
3
+ "version": "1.1.353-dev-13",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -125,18 +125,12 @@ export default function (request) {
125
125
 
126
126
  let nextDepositLimit = '0'
127
127
  let nextTurnoverLimit = '0'
128
- let currentTurnover = '0'
129
- let currentDeposit = '0'
130
128
  const maxReachLevel = conditions?.[conditions?.length - 1]
131
129
  // 若已達到最高等級,所有數值皆以最高等級顯示
132
130
  if (maxReachLevel && nextCycleCardCurrentReachLevel?.title === maxReachLevel.title) {
133
- currentDeposit = maxReachLevel.depositLimit
134
- currentTurnover = maxReachLevel.turnoverLimit
135
131
  nextDepositLimit = maxReachLevel.depositLimit
136
132
  nextTurnoverLimit = maxReachLevel.turnoverLimit
137
133
  } else {
138
- currentDeposit = accumulateTotalDeposit
139
- currentTurnover = accumulateTotalValidTurnover
140
134
  nextDepositLimit = nextCycleCardNextReachLevel?.depositLimit
141
135
  nextTurnoverLimit = nextCycleCardNextReachLevel?.turnoverLimit
142
136
  }
@@ -153,8 +147,8 @@ export default function (request) {
153
147
  lastCycleCard,
154
148
  nextDepositLimit,
155
149
  nextTurnoverLimit,
156
- accumulateTotalDeposit: currentDeposit,
157
- accumulateTotalValidTurnover: currentTurnover,
150
+ accumulateTotalDeposit,
151
+ accumulateTotalValidTurnover,
158
152
  retainAmount,
159
153
  yesterdayRewardsAmount,
160
154
  calculateWalletMode,
@@ -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, siteConfig } = event.data
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) {
@@ -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 }