@jetthai/cuora 1.1.394-dev-6 → 1.1.394-dev-8

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-8](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-7...v1.1.394-dev-8) (2025-11-21)
6
+
7
+ ### [1.1.394-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.399...v1.1.394-dev-7) (2025-11-20)
8
+
9
+ ### [1.1.394-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.396...v1.1.394-dev-6) (2025-11-13)
10
+
11
+ ### [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)
12
+
13
+ ### [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)
14
+
15
+ ### [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)
16
+
17
+ ### [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)
18
+
19
+ ### Features
20
+
21
+ - 新增活動週期自動更新檢查機制 ([d80ff18](https://github.com/jetthai/cuora-module/commit/d80ff188b25fb1576fd25edc8ed985ae1f1b6af6))
22
+
23
+ ### [1.1.394-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.394...v1.1.394-dev-1) (2025-11-10)
24
+
5
25
  ### [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)
6
26
 
7
27
  ### [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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.394-dev-6",
3
+ "version": "1.1.394-dev-8",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -42,6 +42,11 @@ export default function (request, context) {
42
42
  target: 'loaded',
43
43
  },
44
44
  },
45
+ on: {
46
+ REFRESH_ACTIVITY_DETAIL: {
47
+ target: 'loading',
48
+ },
49
+ },
45
50
  },
46
51
  expired: {},
47
52
  },
@@ -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,
@@ -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
  },