@jetthai/cuora 1.0.141-1 → 1.0.141
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,12 +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.0.141-1](https://github.com/jetthai/cuora-module/compare/v1.0.140-2...v1.0.141-1) (2022-07-17)
|
|
6
|
-
|
|
7
|
-
### [1.0.141](https://github.com/jetthai/cuora-module/compare/v1.0.140-1...v1.0.141) (2022-07-05)
|
|
8
|
-
|
|
9
|
-
### [1.0.140-1](https://github.com/jetthai/cuora-module/compare/v1.0.140...v1.0.140-1) (2022-07-04)
|
|
10
|
-
|
|
11
5
|
### [1.0.141](https://github.com/jetthai/cuora-module/compare/v1.0.140-1...v1.0.141) (2022-07-05)
|
|
12
6
|
|
|
13
7
|
### [1.0.140-1](https://github.com/jetthai/cuora-module/compare/v1.0.140...v1.0.140-1) (2022-07-04)
|
package/package.json
CHANGED
package/src/machine/auth.js
CHANGED
|
@@ -202,7 +202,7 @@ export default function (request) {
|
|
|
202
202
|
setReCaptchaToken: assign((context, event) => {
|
|
203
203
|
const { reCaptchaToken } = event.data
|
|
204
204
|
return {
|
|
205
|
-
reCaptchaToken
|
|
205
|
+
reCaptchaToken
|
|
206
206
|
}
|
|
207
207
|
}),
|
|
208
208
|
setLoginPhone: assign((context, event) => {
|
|
@@ -288,14 +288,14 @@ export default function (request) {
|
|
|
288
288
|
const redirectURL = urljoin(
|
|
289
289
|
request.config.fullURL,
|
|
290
290
|
'login?' +
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
291
|
+
qs.stringify({
|
|
292
|
+
provider,
|
|
293
|
+
redirectURI: `${window.location.protocol}//${window.location.host}`,
|
|
294
|
+
channel: cookies.get('channel') || channel || 'official',
|
|
295
|
+
subchannel: cookies.get('subchannel') || subchannel || 'pwa',
|
|
296
|
+
// dt,
|
|
297
|
+
platform: 'pwa',
|
|
298
|
+
})
|
|
299
299
|
)
|
|
300
300
|
window.location.href = redirectURL
|
|
301
301
|
},
|
|
@@ -194,7 +194,6 @@ export default function (request) {
|
|
|
194
194
|
}
|
|
195
195
|
}),
|
|
196
196
|
setBanks: assign((context, event) => {
|
|
197
|
-
const banks = event.data
|
|
198
197
|
const { playerBanks, houseBanks, selectedHouseBank } = context
|
|
199
198
|
|
|
200
199
|
const formattedPlayerBanks = playerBanks.map((bank) => {
|
|
@@ -203,7 +202,7 @@ export default function (request) {
|
|
|
203
202
|
return bank
|
|
204
203
|
})
|
|
205
204
|
|
|
206
|
-
const
|
|
205
|
+
const banks = [...formattedPlayerBanks, ...event.data]
|
|
207
206
|
|
|
208
207
|
const newHouseBanks = houseBanks.map((houseBank) => {
|
|
209
208
|
return { ...houseBank, ...banks.find((bank) => houseBank.bankName === bank.bankCode) }
|
|
@@ -212,12 +211,12 @@ export default function (request) {
|
|
|
212
211
|
const newSelectedHouseBank = { ...selectedHouseBank, ...banks.find((bank) => selectedHouseBank.bankName === bank.bankCode) }
|
|
213
212
|
|
|
214
213
|
return {
|
|
215
|
-
banks
|
|
214
|
+
banks,
|
|
216
215
|
houseBanks: newHouseBanks,
|
|
217
216
|
selectedHouseBank: newSelectedHouseBank,
|
|
218
|
-
selectedUserBank:
|
|
219
|
-
userAccountNumber:
|
|
220
|
-
userAccountName:
|
|
217
|
+
selectedUserBank: banks[0],
|
|
218
|
+
userAccountNumber: banks[0].accountNumber,
|
|
219
|
+
userAccountName: banks[0].holderName,
|
|
221
220
|
}
|
|
222
221
|
}),
|
|
223
222
|
setHouseBank: assign((context, event) => {
|
|
@@ -15,7 +15,7 @@ export default function (request) {
|
|
|
15
15
|
channel: null,
|
|
16
16
|
subchannel: null,
|
|
17
17
|
signUpData: {},
|
|
18
|
-
reCaptchaToken: null
|
|
18
|
+
reCaptchaToken: null
|
|
19
19
|
},
|
|
20
20
|
states: {
|
|
21
21
|
idle: {
|
|
@@ -49,7 +49,7 @@ export default function (request) {
|
|
|
49
49
|
setReCaptchaToken: assign((context, event) => {
|
|
50
50
|
const { reCaptchaToken } = event.data
|
|
51
51
|
return {
|
|
52
|
-
reCaptchaToken
|
|
52
|
+
reCaptchaToken
|
|
53
53
|
}
|
|
54
54
|
}),
|
|
55
55
|
setSignUpPhone: assign((context, event) => {
|
|
@@ -89,7 +89,7 @@ export default function (request) {
|
|
|
89
89
|
channel: cookies.get('channel') || channel,
|
|
90
90
|
subchannel: cookies.get('subchannel') || subchannel,
|
|
91
91
|
dt,
|
|
92
|
-
reCaptchaToken: context.reCaptchaToken
|
|
92
|
+
reCaptchaToken: context.reCaptchaToken
|
|
93
93
|
})
|
|
94
94
|
)
|
|
95
95
|
},
|