@jetthai/cuora 1.1.181 → 1.1.182-krw
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 +4 -0
- package/package.json +1 -1
- package/src/api/payment.js +1 -1
- package/src/machine/auth.js +3 -3
- package/src/machine/bank_binding.js +6 -1
- package/src/machine/bank_binding_amb.js +6 -1
- package/src/machine/deposit/crypto_bank_cash.js +265 -0
- package/src/machine/deposit/index.js +6 -4
- package/src/machine/user_sign_up.js +40 -7
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.182-krw](https://github.com/jetthai/cuora-module/compare/v1.1.182...v1.1.182-krw) (2023-09-26)
|
|
6
|
+
|
|
7
|
+
### [1.1.182](https://github.com/jetthai/cuora-module/compare/v1.1.181...v1.1.182) (2023-09-21)
|
|
8
|
+
|
|
5
9
|
### [1.1.181](https://github.com/jetthai/cuora-module/compare/v1.1.180...v1.1.181) (2023-09-20)
|
|
6
10
|
|
|
7
11
|
### [1.1.180](https://github.com/jetthai/cuora-module/compare/v1.1.179...v1.1.180) (2023-09-19)
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -40,7 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
}),
|
|
42
42
|
getBankList: (paymentMethod) => ({ url: `payment/v2/${paymentMethod}/getBankList`, method: 'get' }),
|
|
43
|
-
getBindingBankList: () => ({ url: 'payment/v2/getBindingBankList', method: 'get' }),
|
|
43
|
+
getBindingBankList: ({ appSecret }) => ({ url: 'payment/v2/getBindingBankList', method: 'get', params: { appSecret }, isPublic: true }),
|
|
44
44
|
getWithdrawBankList: () => ({ url: 'payment/v2/getWithdrawBankList', method: 'get' }),
|
|
45
45
|
makeTransaction: ({ type, payload, paymentMethod }) => ({
|
|
46
46
|
url: `payment/v2/${paymentMethod}/transaction`,
|
package/src/machine/auth.js
CHANGED
|
@@ -320,18 +320,18 @@ export default function (request) {
|
|
|
320
320
|
storage.remove(accountEmailKey)
|
|
321
321
|
storage.set(accountPhoneKey, `${context.loginData.phone}`, {
|
|
322
322
|
path: '/',
|
|
323
|
-
maxAge: 60 * 60 * 24 *
|
|
323
|
+
maxAge: 60 * 60 * 24 * 31,
|
|
324
324
|
})
|
|
325
325
|
storage.set(phoneCountryCode, `${context.countryAbbr}_${context.loginData.countryCode}`, {
|
|
326
326
|
path: '/',
|
|
327
|
-
maxAge: 60 * 60 * 24 *
|
|
327
|
+
maxAge: 60 * 60 * 24 * 31,
|
|
328
328
|
})
|
|
329
329
|
} else if (context.loginData.email) {
|
|
330
330
|
storage.remove(accountPhoneKey)
|
|
331
331
|
storage.remove(phoneCountryCode)
|
|
332
332
|
storage.set(accountEmailKey, context.loginData.email, {
|
|
333
333
|
path: '/',
|
|
334
|
-
maxAge: 60 * 60 * 24 *
|
|
334
|
+
maxAge: 60 * 60 * 24 * 31,
|
|
335
335
|
})
|
|
336
336
|
}
|
|
337
337
|
}),
|
|
@@ -2,6 +2,8 @@ import { assign, createMachine } from 'xstate'
|
|
|
2
2
|
import payment from '../api/payment.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
+
const { appSecret } = request.config
|
|
6
|
+
|
|
5
7
|
return createMachine(
|
|
6
8
|
{
|
|
7
9
|
id: 'bank_binding',
|
|
@@ -106,7 +108,10 @@ export default function (request) {
|
|
|
106
108
|
},
|
|
107
109
|
services: {
|
|
108
110
|
fetchInitData: async (context, event) => {
|
|
109
|
-
const [bankList, paymentInfo] = await Promise.all([
|
|
111
|
+
const [bankList, paymentInfo] = await Promise.all([
|
|
112
|
+
request.send(payment.getBindingBankList({ appSecret })),
|
|
113
|
+
request.send(payment.getPaymentInfo()),
|
|
114
|
+
])
|
|
110
115
|
return { bankList, paymentInfo }
|
|
111
116
|
},
|
|
112
117
|
updatePaymentInfo: async (context, event) => {
|
|
@@ -2,6 +2,8 @@ import { assign, createMachine } from 'xstate'
|
|
|
2
2
|
import payment from '../api/payment.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
+
const { appSecret } = request.config
|
|
6
|
+
|
|
5
7
|
return createMachine(
|
|
6
8
|
{
|
|
7
9
|
id: 'bank_binding_amb',
|
|
@@ -116,7 +118,10 @@ export default function (request) {
|
|
|
116
118
|
},
|
|
117
119
|
services: {
|
|
118
120
|
fetchInitData: async (context, event) => {
|
|
119
|
-
const [bankList, paymentInfo] = await Promise.all([
|
|
121
|
+
const [bankList, paymentInfo] = await Promise.all([
|
|
122
|
+
request.send(payment.getBindingBankList({ appSecret })),
|
|
123
|
+
request.send(payment.getPaymentInfo()),
|
|
124
|
+
])
|
|
120
125
|
return { bankList, paymentInfo }
|
|
121
126
|
},
|
|
122
127
|
updatePaymentInfo: async (context, event) => {
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { assign, createMachine } from 'xstate'
|
|
2
|
+
import payment from '@jetthai/cuora/src/api/payment.js'
|
|
3
|
+
import { max } from '../../util/index.js'
|
|
4
|
+
|
|
5
|
+
export default function (request, context) {
|
|
6
|
+
const { paymentDetail = [], promotion, selectedAmount } = context || {}
|
|
7
|
+
return createMachine(
|
|
8
|
+
{
|
|
9
|
+
id: 'crypto_cash',
|
|
10
|
+
initial: 'loading',
|
|
11
|
+
context: {
|
|
12
|
+
paymentDetail,
|
|
13
|
+
promotion,
|
|
14
|
+
selectedAmount,
|
|
15
|
+
|
|
16
|
+
cryptos: [],
|
|
17
|
+
networks: [],
|
|
18
|
+
sourceAddress: '',
|
|
19
|
+
options: [],
|
|
20
|
+
|
|
21
|
+
selectedCrypto: null,
|
|
22
|
+
selectedNetwork: null,
|
|
23
|
+
|
|
24
|
+
currentCategory: 'cryptoBank',
|
|
25
|
+
|
|
26
|
+
calculation: null,
|
|
27
|
+
result: null,
|
|
28
|
+
receipt: null,
|
|
29
|
+
},
|
|
30
|
+
states: {
|
|
31
|
+
loading: {
|
|
32
|
+
always: [
|
|
33
|
+
{
|
|
34
|
+
target: 'debouncing',
|
|
35
|
+
actions: 'setInitData',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
loaded: {},
|
|
40
|
+
debouncing: {
|
|
41
|
+
entry: 'clearCalculation',
|
|
42
|
+
after: {
|
|
43
|
+
1000: [
|
|
44
|
+
{
|
|
45
|
+
target: 'calculating',
|
|
46
|
+
cond: 'isCalculable',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
target: 'loaded',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
calculating: {
|
|
55
|
+
invoke: {
|
|
56
|
+
src: 'fetchCalculation',
|
|
57
|
+
onDone: {
|
|
58
|
+
target: 'calculated',
|
|
59
|
+
actions: 'setCalculation',
|
|
60
|
+
},
|
|
61
|
+
onError: {
|
|
62
|
+
target: 'calculated',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
calculated: {
|
|
67
|
+
on: {
|
|
68
|
+
SUBMIT: [
|
|
69
|
+
{
|
|
70
|
+
target: 'submitting',
|
|
71
|
+
cond: 'isSubmittable',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
submitting: {
|
|
77
|
+
invoke: {
|
|
78
|
+
src: 'submitDeposit',
|
|
79
|
+
onDone: {
|
|
80
|
+
target: 'submitted',
|
|
81
|
+
actions: 'setResult',
|
|
82
|
+
},
|
|
83
|
+
onError: {
|
|
84
|
+
target: 'loaded',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
submitted: {},
|
|
89
|
+
},
|
|
90
|
+
on: {
|
|
91
|
+
SET_PROMOTION: {
|
|
92
|
+
target: '.debouncing',
|
|
93
|
+
actions: 'setPromotion',
|
|
94
|
+
internal: false,
|
|
95
|
+
},
|
|
96
|
+
SET_CRYPTO: {
|
|
97
|
+
target: '.debouncing',
|
|
98
|
+
actions: 'setCrypto',
|
|
99
|
+
internal: false,
|
|
100
|
+
},
|
|
101
|
+
SET_NETWORK: {
|
|
102
|
+
target: '.debouncing',
|
|
103
|
+
actions: 'setNetwork',
|
|
104
|
+
internal: false,
|
|
105
|
+
},
|
|
106
|
+
SET_ADDRESS: {
|
|
107
|
+
actions: 'setAddress',
|
|
108
|
+
internal: false,
|
|
109
|
+
},
|
|
110
|
+
SET_AMOUNT: {
|
|
111
|
+
target: '.debouncing',
|
|
112
|
+
actions: 'setAmount',
|
|
113
|
+
internal: false,
|
|
114
|
+
},
|
|
115
|
+
INPUT_AMOUNT: {
|
|
116
|
+
target: '.debouncing',
|
|
117
|
+
actions: 'inputAmount',
|
|
118
|
+
internal: false,
|
|
119
|
+
},
|
|
120
|
+
SET_RECEIPT: {
|
|
121
|
+
actions: 'setReceipt',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
actions: {
|
|
127
|
+
setInitData: assign((context, event) => {
|
|
128
|
+
const { paymentDetail } = context
|
|
129
|
+
const cryptos = paymentDetail
|
|
130
|
+
.filter((element) => element.transferType === 'deposit' && element.category === context.currentCategory)
|
|
131
|
+
.map((crypto) => ({
|
|
132
|
+
...crypto,
|
|
133
|
+
label: crypto.channel,
|
|
134
|
+
value: crypto.method,
|
|
135
|
+
icon: crypto.channel,
|
|
136
|
+
}))
|
|
137
|
+
const defaultNetworks = cryptos[0].networkName.map((value, i) => {
|
|
138
|
+
return {
|
|
139
|
+
label: cryptos[0].networkOptional?.[i],
|
|
140
|
+
value,
|
|
141
|
+
icon: value,
|
|
142
|
+
}
|
|
143
|
+
})
|
|
144
|
+
return {
|
|
145
|
+
cryptos,
|
|
146
|
+
networks: defaultNetworks,
|
|
147
|
+
selectedCrypto: cryptos[0],
|
|
148
|
+
selectedNetwork: defaultNetworks[0],
|
|
149
|
+
options: cryptos[0].optional,
|
|
150
|
+
}
|
|
151
|
+
}),
|
|
152
|
+
setCrypto: assign((context, event) => {
|
|
153
|
+
const { cryptos } = context
|
|
154
|
+
const selectedCrypto = cryptos.find((crypto) => crypto.method === event.data.value)
|
|
155
|
+
const networks = selectedCrypto?.networkName.map((value, i) => {
|
|
156
|
+
return {
|
|
157
|
+
label: selectedCrypto?.networkOptional?.[i],
|
|
158
|
+
value,
|
|
159
|
+
icon: value,
|
|
160
|
+
}
|
|
161
|
+
})
|
|
162
|
+
return {
|
|
163
|
+
networks,
|
|
164
|
+
selectedCrypto: selectedCrypto,
|
|
165
|
+
selectedNetwork: networks[0],
|
|
166
|
+
selectedAmount: null,
|
|
167
|
+
calculation: null,
|
|
168
|
+
options: selectedCrypto.optional,
|
|
169
|
+
}
|
|
170
|
+
}),
|
|
171
|
+
setNetwork: assign((context, event) => {
|
|
172
|
+
return { selectedNetwork: event.data }
|
|
173
|
+
}),
|
|
174
|
+
setAmount: assign((context, event) => {
|
|
175
|
+
// 現金網可自由填額度,grandTotalEnable 欄位感覺不再需要?
|
|
176
|
+
if (context.selectedCrypto?.grandTotalEnable === 1) {
|
|
177
|
+
return { selectedAmount: parseFloat(context.selectedAmount || 0) + parseFloat(event.data) }
|
|
178
|
+
} else {
|
|
179
|
+
return { selectedAmount: event.data }
|
|
180
|
+
}
|
|
181
|
+
}),
|
|
182
|
+
inputAmount: assign((context, event) => {
|
|
183
|
+
return { selectedAmount: event.data }
|
|
184
|
+
}),
|
|
185
|
+
setAddress: assign((context, event) => {
|
|
186
|
+
return {
|
|
187
|
+
sourceAddress: event.data,
|
|
188
|
+
}
|
|
189
|
+
}),
|
|
190
|
+
setCalculation: assign((context, event) => {
|
|
191
|
+
return {
|
|
192
|
+
calculation: event.data,
|
|
193
|
+
}
|
|
194
|
+
}),
|
|
195
|
+
clearCalculation: assign((context, event) => {
|
|
196
|
+
return {
|
|
197
|
+
calculation: null,
|
|
198
|
+
}
|
|
199
|
+
}),
|
|
200
|
+
setResult: assign((context, event) => {
|
|
201
|
+
return {
|
|
202
|
+
result: event.data,
|
|
203
|
+
}
|
|
204
|
+
}),
|
|
205
|
+
setPromotion: assign((context, event) => {
|
|
206
|
+
const { selectedCrypto, selectedAmount } = context
|
|
207
|
+
const promotion = event.data
|
|
208
|
+
return {
|
|
209
|
+
promotion,
|
|
210
|
+
selectedAmount: max(promotion.minimumAmount, selectedCrypto.minimum, selectedAmount, 0),
|
|
211
|
+
calculation: null,
|
|
212
|
+
}
|
|
213
|
+
}),
|
|
214
|
+
setReceipt: assign((context, event) => {
|
|
215
|
+
return {
|
|
216
|
+
receipt: event.data,
|
|
217
|
+
}
|
|
218
|
+
}),
|
|
219
|
+
},
|
|
220
|
+
guards: {
|
|
221
|
+
isCalculable: (context, event) => {
|
|
222
|
+
const { selectedCrypto, selectedNetwork, selectedAmount } = context
|
|
223
|
+
return (
|
|
224
|
+
selectedCrypto &&
|
|
225
|
+
selectedNetwork &&
|
|
226
|
+
selectedAmount &&
|
|
227
|
+
selectedCrypto.minimum <= +selectedAmount &&
|
|
228
|
+
+selectedAmount <= selectedCrypto.maximum
|
|
229
|
+
)
|
|
230
|
+
},
|
|
231
|
+
isSubmittable: (context, event) => {
|
|
232
|
+
const { selectedCrypto, selectedNetwork, selectedAmount } = context
|
|
233
|
+
return selectedCrypto && selectedNetwork && selectedAmount
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
services: {
|
|
237
|
+
fetchCalculation: async (context, event) => {
|
|
238
|
+
const { selectedCrypto, selectedAmount, promotion } = context
|
|
239
|
+
return await request.send(
|
|
240
|
+
payment.getCryptoDepositExpectedResult({
|
|
241
|
+
method: selectedCrypto.method,
|
|
242
|
+
amount: selectedAmount,
|
|
243
|
+
cryptoCurrency: selectedCrypto.channel,
|
|
244
|
+
promotionsNo: promotion?.promotionsNo,
|
|
245
|
+
})
|
|
246
|
+
)
|
|
247
|
+
},
|
|
248
|
+
submitDeposit: async (context, event) => {
|
|
249
|
+
const { selectedCrypto, selectedNetwork, calculation, sourceAddress, promotion, receipt } = context
|
|
250
|
+
return await request.send(
|
|
251
|
+
payment.submitDepositTransactionCrypto({
|
|
252
|
+
method: selectedCrypto.method,
|
|
253
|
+
amount: calculation.actualAmount,
|
|
254
|
+
cryptoCurrency: selectedCrypto.channel,
|
|
255
|
+
cryptoNetwork: selectedNetwork.value,
|
|
256
|
+
sourceAddress: sourceAddress,
|
|
257
|
+
promotionsNo: promotion?.promotionsNo,
|
|
258
|
+
receipt,
|
|
259
|
+
})
|
|
260
|
+
)
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
}
|
|
264
|
+
)
|
|
265
|
+
}
|
|
@@ -4,8 +4,6 @@ import qrcode_v2 from './qrcode_v2.js'
|
|
|
4
4
|
import deposit_fc from './deposit_fc.js'
|
|
5
5
|
import crypto from './crypto.js'
|
|
6
6
|
import crypto_button from './crypto_button.js'
|
|
7
|
-
import crypto_qrcode_cash from './crypto_qrcode_cash.js'
|
|
8
|
-
import crypto_way_cash from './crypto_way_cash.js'
|
|
9
7
|
import direct from './direct.js'
|
|
10
8
|
import amb from './amb.js'
|
|
11
9
|
import float from './float.js'
|
|
@@ -20,6 +18,9 @@ import loadcard_cash from './loadcard_cash.js'
|
|
|
20
18
|
import crypto_bank from './crypto_bank.js'
|
|
21
19
|
import crypto_qrcode from './crypto_qrcode.js'
|
|
22
20
|
import crypto_way from './crypto_way.js'
|
|
21
|
+
import crypto_bank_cash from './crypto_bank_cash.js'
|
|
22
|
+
import crypto_qrcode_cash from './crypto_qrcode_cash.js'
|
|
23
|
+
import crypto_way_cash from './crypto_way_cash.js'
|
|
23
24
|
|
|
24
25
|
export default {
|
|
25
26
|
manual_vn,
|
|
@@ -28,8 +29,6 @@ export default {
|
|
|
28
29
|
deposit_fc,
|
|
29
30
|
crypto,
|
|
30
31
|
crypto_button,
|
|
31
|
-
crypto_qrcode_cash,
|
|
32
|
-
crypto_way_cash,
|
|
33
32
|
direct,
|
|
34
33
|
amb,
|
|
35
34
|
float,
|
|
@@ -44,4 +43,7 @@ export default {
|
|
|
44
43
|
crypto_bank,
|
|
45
44
|
crypto_qrcode,
|
|
46
45
|
crypto_way,
|
|
46
|
+
crypto_bank_cash,
|
|
47
|
+
crypto_qrcode_cash,
|
|
48
|
+
crypto_way_cash,
|
|
47
49
|
}
|
|
@@ -28,13 +28,17 @@ export default function (request) {
|
|
|
28
28
|
states: {
|
|
29
29
|
idle: {
|
|
30
30
|
on: {
|
|
31
|
+
SIGN_UP_ID: {
|
|
32
|
+
target: 'authentication',
|
|
33
|
+
actions: ['setReCaptchaToken', 'setFriendCode', 'setSignUpId'],
|
|
34
|
+
},
|
|
31
35
|
SIGN_UP_PHONE: {
|
|
32
36
|
target: 'authentication',
|
|
33
|
-
actions: ['setReCaptchaToken', '
|
|
37
|
+
actions: ['setReCaptchaToken', 'setFriendCode', 'setSignUpPhone'],
|
|
34
38
|
},
|
|
35
39
|
SIGN_UP_EMAIL: {
|
|
36
40
|
target: 'authentication',
|
|
37
|
-
actions: ['setReCaptchaToken', '
|
|
41
|
+
actions: ['setReCaptchaToken', 'setFriendCode', 'setSignUpEmail'],
|
|
38
42
|
},
|
|
39
43
|
},
|
|
40
44
|
},
|
|
@@ -66,32 +70,61 @@ export default function (request) {
|
|
|
66
70
|
reCaptchaToken,
|
|
67
71
|
}
|
|
68
72
|
}),
|
|
69
|
-
|
|
73
|
+
setFriendCode: assign((context, event) => {
|
|
70
74
|
const { fc } = event.data
|
|
75
|
+
return { fc }
|
|
76
|
+
}),
|
|
77
|
+
setSignUpId: assign((context, event) => {
|
|
78
|
+
const { account, password, channel, subchannel, bankCode, bankAccount, holderName, branch, branchCode, affiliateCode } = event.data
|
|
71
79
|
return {
|
|
72
|
-
|
|
80
|
+
signUpData: {
|
|
81
|
+
provider: 'local',
|
|
82
|
+
account,
|
|
83
|
+
password,
|
|
84
|
+
bankCode,
|
|
85
|
+
bankAccount,
|
|
86
|
+
holderName,
|
|
87
|
+
branch,
|
|
88
|
+
branchCode,
|
|
89
|
+
affiliateCode,
|
|
90
|
+
},
|
|
91
|
+
channel,
|
|
92
|
+
subchannel,
|
|
73
93
|
}
|
|
74
94
|
}),
|
|
75
95
|
setSignUpPhone: assign((context, event) => {
|
|
76
|
-
const { countryCode, phone, password, channel, subchannel } =
|
|
96
|
+
const { countryCode, phone, password, channel, subchannel, bankCode, bankAccount, holderName, branch, branchCode, affiliateCode } =
|
|
97
|
+
event.data
|
|
77
98
|
return {
|
|
78
99
|
signUpData: {
|
|
79
100
|
provider: 'phone',
|
|
80
101
|
countryCode,
|
|
81
102
|
phone,
|
|
82
103
|
password,
|
|
104
|
+
bankCode,
|
|
105
|
+
bankAccount,
|
|
106
|
+
holderName,
|
|
107
|
+
branch,
|
|
108
|
+
branchCode,
|
|
109
|
+
affiliateCode,
|
|
83
110
|
},
|
|
84
111
|
channel,
|
|
85
112
|
subchannel,
|
|
86
113
|
}
|
|
87
114
|
}),
|
|
88
115
|
setSignUpEmail: assign((context, event) => {
|
|
89
|
-
const { email, password, channel, subchannel } = event.data
|
|
116
|
+
const { email, password, channel, subchannel, bankCode, bankAccount, holderName, branch, branchCode, affiliateCode } = event.data
|
|
90
117
|
return {
|
|
91
118
|
signUpData: {
|
|
92
119
|
provider: 'email',
|
|
93
120
|
email,
|
|
94
121
|
password,
|
|
122
|
+
bankCode,
|
|
123
|
+
bankAccount,
|
|
124
|
+
holderName,
|
|
125
|
+
branch,
|
|
126
|
+
branchCode,
|
|
127
|
+
affiliateCode,
|
|
95
128
|
},
|
|
96
129
|
channel,
|
|
97
130
|
subchannel,
|
|
@@ -122,7 +155,7 @@ export default function (request) {
|
|
|
122
155
|
const { channel, subchannel, signUpData, deviceTokenEnable } = context
|
|
123
156
|
const dt = await getDeviceToken({ fpToken, sentry, hosts: request.hosts, enable: deviceTokenEnable })
|
|
124
157
|
|
|
125
|
-
const affiliateCode = storage.get('ac')
|
|
158
|
+
const affiliateCode = storage.get('ac') || signUpData?.affiliateCode
|
|
126
159
|
const messages = {
|
|
127
160
|
url: window.location.href,
|
|
128
161
|
channelOrders: [
|