@jetthai/cuora 1.1.427-dev.5 → 1.1.427-hotfix.1
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/.claude/commands/commit-push.md +69 -13
- package/.claude/settings.local.json +1 -3
- package/.prettierignore +1 -2
- package/CHANGELOG.md +14 -74
- package/package.json +1 -1
- package/scripts/auto-version.js +0 -1
- package/src/api/activity.js +0 -5
- package/src/machine/auth.js +0 -22
- package/src/machine/withdraw/withdraw_crypto_cash.js +1 -1
- package/src/machine/withdraw/withdraw_manual_cash.js +1 -1
|
@@ -4,7 +4,43 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
## Step 1 —
|
|
7
|
+
## Step 1 — 同步遠端分支
|
|
8
|
+
|
|
9
|
+
檢查當前分支的遠端是否有更新:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
git fetch origin
|
|
13
|
+
git status
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
如果本地已經是最新(沒有 behind commits),直接進入 Step 2。
|
|
17
|
+
|
|
18
|
+
如果遠端有更新(本地 behind),執行 pull:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
git pull
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
如果 pull 發生衝突:
|
|
25
|
+
|
|
26
|
+
1. 取消 merge:
|
|
27
|
+
```bash
|
|
28
|
+
git merge --abort
|
|
29
|
+
```
|
|
30
|
+
2. 告知使用者:「遠端有更新且與本地變更衝突,請先還原當前所有檔案的異動,還原完成後請回覆。」
|
|
31
|
+
3. 等待使用者回覆。
|
|
32
|
+
4. 使用者回覆後,重新執行 pull:
|
|
33
|
+
```bash
|
|
34
|
+
git pull
|
|
35
|
+
```
|
|
36
|
+
5. Pull 成功後,告知使用者:「遠端同步完成,請將剛才還原的異動重新加回,完成後請回覆。」
|
|
37
|
+
6. 等待使用者回覆確認已全部加回,再繼續後續流程。
|
|
38
|
+
|
|
39
|
+
出現錯誤則停止,詢問使用者要怎麼做。
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Step 2 — 檢查工作區狀態
|
|
8
44
|
|
|
9
45
|
```bash
|
|
10
46
|
git status
|
|
@@ -18,7 +54,7 @@ git status
|
|
|
18
54
|
|
|
19
55
|
---
|
|
20
56
|
|
|
21
|
-
## Step
|
|
57
|
+
## Step 3 — Stage 變更
|
|
22
58
|
|
|
23
59
|
將所有變更加入 staging area:
|
|
24
60
|
|
|
@@ -30,7 +66,7 @@ git add -A
|
|
|
30
66
|
|
|
31
67
|
---
|
|
32
68
|
|
|
33
|
-
## Step
|
|
69
|
+
## Step 4 — 選擇 Commit Message 方式
|
|
34
70
|
|
|
35
71
|
使用 `AskUserQuestion` 工具顯示選單,讓使用者從以下選項中選擇:
|
|
36
72
|
|
|
@@ -44,7 +80,7 @@ git add -A
|
|
|
44
80
|
|
|
45
81
|
---
|
|
46
82
|
|
|
47
|
-
## Step
|
|
83
|
+
## Step 5 — 生成 Commit Message
|
|
48
84
|
|
|
49
85
|
根據使用者在 Step 3 的選擇執行:
|
|
50
86
|
|
|
@@ -55,7 +91,27 @@ git add -A
|
|
|
55
91
|
- 格式:`type(scope): description`
|
|
56
92
|
- type:feat / fix / refactor / style / docs / chore / perf / test
|
|
57
93
|
- scope:根據變更的主要目錄或功能模組決定(可省略)
|
|
58
|
-
- description
|
|
94
|
+
- description:簡潔描述變更內容(中文)
|
|
95
|
+
|
|
96
|
+
當變更涉及多個不同類型或模組時,自行分類並以條列式呈現:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
type(scope): 主要描述
|
|
100
|
+
|
|
101
|
+
- type(scope): 細項描述 1
|
|
102
|
+
- type(scope): 細項描述 2
|
|
103
|
+
- type(scope): 細項描述 3
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
例如:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
feat(payment): 新增加密貨幣存款功能
|
|
110
|
+
|
|
111
|
+
- feat(deposit): 新增 USDT 存款方式
|
|
112
|
+
- fix(withdraw): 修正提款金額驗證邏輯
|
|
113
|
+
- style(modal): 調整存款彈窗樣式
|
|
114
|
+
```
|
|
59
115
|
|
|
60
116
|
如果是選項 2,將生成的 message 顯示給使用者,等待使用者確認或提供修改後的版本。
|
|
61
117
|
|
|
@@ -71,7 +127,7 @@ git add -A
|
|
|
71
127
|
|
|
72
128
|
---
|
|
73
129
|
|
|
74
|
-
## Step
|
|
130
|
+
## Step 6 — 執行 Commit
|
|
75
131
|
|
|
76
132
|
使用確定的 commit message 執行 commit:
|
|
77
133
|
|
|
@@ -89,20 +145,20 @@ git commit -m "<title>" -m "<body>"
|
|
|
89
145
|
|
|
90
146
|
---
|
|
91
147
|
|
|
92
|
-
## Step
|
|
148
|
+
## Step 7 — 確認是否 Push
|
|
93
149
|
|
|
94
150
|
使用 `AskUserQuestion` 工具顯示選單,讓使用者從以下選項中選擇:
|
|
95
151
|
|
|
96
152
|
- **Push** — 立即 push 到遠端
|
|
97
|
-
-
|
|
153
|
+
- **Skip** — 跳過 push,僅完成 commit
|
|
98
154
|
|
|
99
155
|
等待使用者選擇。
|
|
100
156
|
|
|
101
|
-
如果使用者選擇「不 Push」,跳過 push 直接進入 Step 8 完成回報。
|
|
102
|
-
|
|
103
157
|
---
|
|
104
158
|
|
|
105
|
-
## Step
|
|
159
|
+
## Step 8 — 執行 Push(如使用者選擇 Push)
|
|
160
|
+
|
|
161
|
+
如果使用者選擇 Skip,跳過此步驟直接到 Step 9。
|
|
106
162
|
|
|
107
163
|
將 commit push 到遠端:
|
|
108
164
|
|
|
@@ -120,10 +176,10 @@ git push --set-upstream origin <current_branch>
|
|
|
120
176
|
|
|
121
177
|
---
|
|
122
178
|
|
|
123
|
-
## Step
|
|
179
|
+
## Step 9 — 完成回報
|
|
124
180
|
|
|
125
181
|
顯示以下資訊:
|
|
126
182
|
|
|
127
183
|
- 分支名稱
|
|
128
184
|
- Commit message 內容
|
|
129
|
-
- Push
|
|
185
|
+
- Push 結果(成功/失敗/已跳過)
|
package/.prettierignore
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
dist/
|
|
2
|
-
CHANGELOG.md
|
|
1
|
+
dist/
|
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,21 @@
|
|
|
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.427-
|
|
5
|
+
### [1.1.427-hotfix.1](https://github.com/jetthai/cuora-module/compare/v1.1.427-hotfix...v1.1.427-hotfix.1) (2026-04-14)
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **withdraw:** 修正法幣提款計算錯誤時的狀態轉移 ([3a7eb16](https://github.com/jetthai/cuora-module/commit/3a7eb1644e4992ba70c7f7f2ae1452447a953d76))
|
|
10
|
+
|
|
11
|
+
### [1.1.427-hotfix](https://github.com/jetthai/cuora-module/compare/v1.1.427...v1.1.427-hotfix) (2026-04-14)
|
|
8
12
|
|
|
9
|
-
###
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- **husky:** skip pre-push hooks on force push to dev/qa ([79e9df9](https://github.com/jetthai/cuora-module/commit/79e9df9bfd9335dca7d5aec590fa25d7580586ac))
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
- **withdraw:** 修正加密貨幣提款計算錯誤時的狀態轉移 ([3acbe09](https://github.com/jetthai/cuora-module/commit/3acbe0985bf5d4a85ccd02390c5f99092829c820))
|
|
10
20
|
|
|
11
21
|
### [1.1.427](https://github.com/jetthai/cuora-module/compare/v1.1.426...v1.1.427) (2026-04-07)
|
|
12
22
|
|
|
@@ -26,77 +36,7 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
26
36
|
|
|
27
37
|
### [1.1.424](https://github.com/jetthai/cuora-module/compare/v1.1.423...v1.1.424) (2026-03-17)
|
|
28
38
|
|
|
29
|
-
### [1.1.
|
|
30
|
-
|
|
31
|
-
### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
|
|
32
|
-
|
|
33
|
-
### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
|
|
34
|
-
|
|
35
|
-
### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
|
|
36
|
-
|
|
37
|
-
### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
|
|
38
|
-
|
|
39
|
-
### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
|
|
40
|
-
|
|
41
|
-
### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
|
|
42
|
-
|
|
43
|
-
### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
|
|
44
|
-
|
|
45
|
-
### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
|
|
46
|
-
|
|
47
|
-
### [1.1.422-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.422-dev-1...v1.1.422-dev-2) (2026-03-17)
|
|
48
|
-
|
|
49
|
-
### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
|
|
50
|
-
|
|
51
|
-
### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
|
|
52
|
-
|
|
53
|
-
### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
|
|
54
|
-
|
|
55
|
-
### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
|
|
56
|
-
|
|
57
|
-
### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
|
|
58
|
-
|
|
59
|
-
### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
|
|
60
|
-
|
|
61
|
-
### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
|
|
62
|
-
|
|
63
|
-
### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
|
|
64
|
-
|
|
65
|
-
### [1.1.422-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.422-dev-1...v1.1.422-dev-2) (2026-03-17)
|
|
66
|
-
|
|
67
|
-
### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
|
|
68
|
-
|
|
69
|
-
### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
|
|
70
|
-
|
|
71
|
-
### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
|
|
72
|
-
|
|
73
|
-
### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
|
|
74
|
-
|
|
75
|
-
### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
|
|
76
|
-
|
|
77
|
-
### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
|
|
78
|
-
|
|
79
|
-
### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
|
|
80
|
-
|
|
81
|
-
### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
|
|
82
|
-
|
|
83
|
-
### [1.1.422-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.422-dev-1...v1.1.422-dev-2) (2026-03-17)
|
|
84
|
-
|
|
85
|
-
### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
|
|
86
|
-
|
|
87
|
-
### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
|
|
88
|
-
|
|
89
|
-
### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
|
|
90
|
-
|
|
91
|
-
### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
|
|
92
|
-
|
|
93
|
-
### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
|
|
94
|
-
|
|
95
|
-
### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
|
|
96
|
-
|
|
97
|
-
### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
|
|
98
|
-
|
|
99
|
-
### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
|
|
39
|
+
### [1.1.423](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.423) (2026-03-17)
|
|
100
40
|
|
|
101
41
|
### [1.1.422](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.422) (2026-03-16)
|
|
102
42
|
|
package/package.json
CHANGED
package/scripts/auto-version.js
CHANGED
package/src/api/activity.js
CHANGED
|
@@ -120,9 +120,4 @@ export default {
|
|
|
120
120
|
method: 'post',
|
|
121
121
|
params: { startDate, endDate, appSecret },
|
|
122
122
|
}),
|
|
123
|
-
getMissionHistory: ({ activityNo, appSecret }) => ({
|
|
124
|
-
url: 'activities/mission-history',
|
|
125
|
-
method: 'get',
|
|
126
|
-
params: { activityNo, appSecret },
|
|
127
|
-
}),
|
|
128
123
|
}
|
package/src/machine/auth.js
CHANGED
|
@@ -110,28 +110,6 @@ export default function (request) {
|
|
|
110
110
|
},
|
|
111
111
|
},
|
|
112
112
|
otpChecking: {
|
|
113
|
-
initial: 'pending',
|
|
114
|
-
states: {
|
|
115
|
-
pending: {
|
|
116
|
-
after: {
|
|
117
|
-
TIMEOUT: {
|
|
118
|
-
target: 'fetching',
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
fetching: {
|
|
123
|
-
invoke: {
|
|
124
|
-
src: 'fetchUserInfo',
|
|
125
|
-
onDone: {
|
|
126
|
-
target: 'pending',
|
|
127
|
-
actions: ['setUserInfo', 'extendToken'],
|
|
128
|
-
},
|
|
129
|
-
onError: {
|
|
130
|
-
target: 'pending',
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
113
|
on: {
|
|
136
114
|
OTP_VERIFIED: {
|
|
137
115
|
target: 'loginSuccess',
|