@jetthai/cuora 1.1.421-qa-1 → 1.1.421
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 +0 -2
- package/package.json +1 -1
- package/src/machine/deposit/crypto_way_cash.js +11 -20
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
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.421-qa-1](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.421-qa-1) (2026-03-16)
|
|
6
|
-
|
|
7
5
|
### [1.1.421](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.421) (2026-03-10)
|
|
8
6
|
|
|
9
7
|
### [1.1.420](https://github.com/jetthai/cuora-module/compare/v1.1.419...v1.1.420) (2026-03-10)
|
package/package.json
CHANGED
|
@@ -130,28 +130,19 @@ export default function (request, context) {
|
|
|
130
130
|
setInitData: assign((context, event) => {
|
|
131
131
|
const { paymentDetail } = context
|
|
132
132
|
const payments = paymentDetail.filter((item) => item.category === context.currentCategory)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
label: `${network.cryptoName || ''} - ${network.networkDisplayName || ''}`,
|
|
142
|
-
value: payment.method,
|
|
143
|
-
icon: payment.channel,
|
|
144
|
-
networkCode: network.networkCode,
|
|
145
|
-
}))
|
|
146
|
-
})
|
|
147
|
-
|
|
148
|
-
// 安全地處理空數組情況
|
|
149
|
-
const defaultCrypto = cryptos.length > 0 ? cryptos[0] : null
|
|
133
|
+
const cryptos = payments.map((payment) => ({
|
|
134
|
+
...payment,
|
|
135
|
+
label: `${payment.networks?.[0]?.cryptoName} - ${payment.networks?.[0]?.networkDisplayName}`,
|
|
136
|
+
// network: payment.networkName?.[0], // 改由 networkCode 取代
|
|
137
|
+
value: payment.method,
|
|
138
|
+
icon: payment.channel,
|
|
139
|
+
networkCode: payment.networks?.[0]?.networkCode,
|
|
140
|
+
}))
|
|
150
141
|
|
|
151
142
|
return {
|
|
152
143
|
cryptos,
|
|
153
|
-
selectedCrypto:
|
|
154
|
-
options:
|
|
144
|
+
selectedCrypto: cryptos[0],
|
|
145
|
+
options: cryptos[0].optional,
|
|
155
146
|
}
|
|
156
147
|
}),
|
|
157
148
|
setCrypto: assign((context, event) => {
|
|
@@ -161,7 +152,7 @@ export default function (request, context) {
|
|
|
161
152
|
selectedCrypto: selectedCrypto,
|
|
162
153
|
selectedAmount: null,
|
|
163
154
|
calculation: null,
|
|
164
|
-
options: selectedCrypto
|
|
155
|
+
options: selectedCrypto.optional,
|
|
165
156
|
}
|
|
166
157
|
}),
|
|
167
158
|
setAmount: assign((context, event) => {
|