@jetthai/cuora 1.1.258 → 1.1.259-auth-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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.259-auth-1](https://github.com/jetthai/cuora-module/compare/v1.1.259...v1.1.259-auth-1) (2024-05-08)
|
|
6
|
+
|
|
7
|
+
### [1.1.259](https://github.com/jetthai/cuora-module/compare/v1.1.258...v1.1.259) (2024-05-07)
|
|
8
|
+
|
|
5
9
|
### [1.1.258](https://github.com/jetthai/cuora-module/compare/v1.1.257...v1.1.258) (2024-05-07)
|
|
6
10
|
|
|
7
11
|
### [1.1.257](https://github.com/jetthai/cuora-module/compare/v1.1.256...v1.1.257) (2024-05-06)
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -91,7 +91,7 @@ export default {
|
|
|
91
91
|
method: 'post',
|
|
92
92
|
params: { transferType: 'DEPOSIT', amount, cryptoCurrency, cryptoNetwork, sourceAddress, promotionsNo, receipt },
|
|
93
93
|
}),
|
|
94
|
-
submitDepositTransactionCryptoBank: ({ method, amount, cryptoCurrency, cryptoNetwork,
|
|
94
|
+
submitDepositTransactionCryptoBank: ({ method, amount, cryptoCurrency, cryptoNetwork, sourceAddress, promotionsNo, depositTime, receipt }) => ({
|
|
95
95
|
url: `payment/v2/${method}/transaction`,
|
|
96
96
|
method: 'post',
|
|
97
97
|
params: {
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
amount,
|
|
100
100
|
cryptoCurrency,
|
|
101
101
|
cryptoNetwork,
|
|
102
|
-
|
|
102
|
+
sourceAddress,
|
|
103
103
|
promotionsNo,
|
|
104
104
|
depositTime,
|
|
105
105
|
receipt,
|
package/src/machine/auth.js
CHANGED
|
@@ -100,7 +100,7 @@ export default function (request) {
|
|
|
100
100
|
invoke: {
|
|
101
101
|
src: 'fetchUserInfo',
|
|
102
102
|
onDone: {
|
|
103
|
-
target: '
|
|
103
|
+
target: 'loginSuccess',
|
|
104
104
|
actions: ['setUserInfo', 'extendToken'],
|
|
105
105
|
},
|
|
106
106
|
onError: {
|
|
@@ -108,6 +108,13 @@ export default function (request) {
|
|
|
108
108
|
},
|
|
109
109
|
},
|
|
110
110
|
},
|
|
111
|
+
loginSuccess: {
|
|
112
|
+
after: {
|
|
113
|
+
0: {
|
|
114
|
+
target: 'tokenAuthenticated',
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
111
118
|
tokenAuthenticated: {
|
|
112
119
|
invoke: {
|
|
113
120
|
src: 'fetchUserInfo',
|
|
@@ -248,7 +248,7 @@ export default function (request) {
|
|
|
248
248
|
amount: amount,
|
|
249
249
|
cryptoCurrency: selectedCrypto.symbol,
|
|
250
250
|
cryptoNetwork: selectedCrypto.network,
|
|
251
|
-
|
|
251
|
+
sourceAddress: selectedCrypto.address,
|
|
252
252
|
promotionsNo: promotion?.activityNo,
|
|
253
253
|
depositTime,
|
|
254
254
|
receipt,
|
|
@@ -217,7 +217,7 @@ export default function (request, context) {
|
|
|
217
217
|
amount: selectedAmount,
|
|
218
218
|
cryptoCurrency: selectedCrypto.symbol,
|
|
219
219
|
cryptoNetwork: selectedCrypto.network,
|
|
220
|
-
|
|
220
|
+
sourceAddress: selectedCrypto.address,
|
|
221
221
|
promotionsNo: promotion?.promotionsNo,
|
|
222
222
|
depositTime,
|
|
223
223
|
receipt,
|