@jetthai/cuora 1.1.394-dev-5 → 1.1.394-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 CHANGED
@@ -2,6 +2,26 @@
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.394-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.399...v1.1.394-dev-7) (2025-11-20)
6
+
7
+ ### [1.1.394-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.396...v1.1.394-dev-6) (2025-11-13)
8
+
9
+ ### [1.1.394-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-4...v1.1.394-dev-5) (2025-11-11)
10
+
11
+ ### [1.1.394-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-3...v1.1.394-dev-4) (2025-11-11)
12
+
13
+ ### [1.1.394-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-2...v1.1.394-dev-3) (2025-11-10)
14
+
15
+ ### [1.1.394-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-1...v1.1.394-dev-2) (2025-11-10)
16
+
17
+ ### Features
18
+
19
+ - 新增活動週期自動更新檢查機制 ([d80ff18](https://github.com/jetthai/cuora-module/commit/d80ff188b25fb1576fd25edc8ed985ae1f1b6af6))
20
+
21
+ ### [1.1.394-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.394...v1.1.394-dev-1) (2025-11-10)
22
+
23
+ ### [1.1.394-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-5...v1.1.394-dev-6) (2025-11-13)
24
+
5
25
  ### [1.1.394-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-4...v1.1.394-dev-5) (2025-11-11)
6
26
 
7
27
  ### [1.1.394-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-3...v1.1.394-dev-4) (2025-11-11)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.394-dev-5",
3
+ "version": "1.1.394-dev-7",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -153,7 +153,6 @@ export default function (request) {
153
153
  actions: assign((context, event) => {
154
154
  return {
155
155
  bank: null,
156
- ifscCode: null,
157
156
  crypto: null,
158
157
  network: null,
159
158
  cryptoAddress: null,
@@ -40,6 +40,7 @@ export default function (request) {
40
40
  portrait: null,
41
41
  gameCode: null,
42
42
  name: null,
43
+ gameName: null,
43
44
  isDemo: false,
44
45
  },
45
46
  walletType: null,
@@ -450,15 +451,15 @@ export default function (request) {
450
451
  },
451
452
  }),
452
453
  setGameInfo: assign((context, event) => {
453
- const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name } = event.data.game
454
- return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name } }
454
+ const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name, gameName } = event.data.game
455
+ return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name, gameName } }
455
456
  }),
456
457
  setSwitch: assign((context, event) => {
457
458
  return { switchGame: event.data.game }
458
459
  }),
459
460
  setSwitchGameInfo: assign((context, event) => {
460
- const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name } = context.switchGame
461
- return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name } }
461
+ const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name, gameName } = context.switchGame
462
+ return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name, gameName } }
462
463
  }),
463
464
  setWalletType: assign((context, event) => {
464
465
  return { walletType: event.data.walletType }
@@ -258,6 +258,10 @@ export default function (request) {
258
258
  services: {
259
259
  fetchActivityDetail: async (context, event) => {
260
260
  const { activityNo, activityDetail = {} } = context
261
+ // 當活動資料已存在時避免重複呼叫 api
262
+ if (Object.keys(activityDetail).length > 0) {
263
+ return activityDetail
264
+ }
261
265
  const { data } = await request.send(api.getActivityDetail({ activityNo, appSecret }))
262
266
  return data.activityNo ? data : activityDetail
263
267
  },