@jetthai/cuora 1.1.406-dev-4 → 1.1.406-dev-6
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.406-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.406-dev-4...v1.1.406-dev-6) (2026-01-09)
|
|
6
|
+
|
|
7
|
+
### [1.1.406-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.406-dev-4...v1.1.406-dev-5) (2026-01-09)
|
|
8
|
+
|
|
5
9
|
### [1.1.406-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.406-dev-3...v1.1.406-dev-4) (2026-01-09)
|
|
6
10
|
|
|
7
11
|
### [1.1.406-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.407...v1.1.406-dev-3) (2026-01-08)
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -176,12 +176,12 @@ export default {
|
|
|
176
176
|
params: { transferType: 'DEPOSIT', amount, promotionsNo },
|
|
177
177
|
}),
|
|
178
178
|
submitWithdrawTransactionCrypto: ({ method, amount, cryptoCurrency, cryptoNetwork, targetAddress, applyerHolderName }) => ({
|
|
179
|
-
url:
|
|
179
|
+
url: `/payment/v2/${method}/withdraw-otp/verify`,
|
|
180
180
|
method: 'post',
|
|
181
181
|
params: { transferType: 'WITHDRAW', amount, cryptoCurrency, cryptoNetwork, targetAddress, applyerHolderName },
|
|
182
182
|
}),
|
|
183
183
|
submitWithdrawTransactionVN: ({ method, amount, applyerBankCode, applyerAccountNumber, applyerIfscCode, branch, applyerHolderName }) => ({
|
|
184
|
-
url:
|
|
184
|
+
url: `/payment/v2/${method}/withdraw-otp/verify`,
|
|
185
185
|
method: 'post',
|
|
186
186
|
params: {
|
|
187
187
|
transferType: 'WITHDRAW',
|
|
@@ -247,4 +247,16 @@ export default {
|
|
|
247
247
|
withdrawCheck: () => ({ url: `payment/v2/withdrawCheck`, method: 'post' }),
|
|
248
248
|
updateUtr: ({ applyId, utr }) => ({ url: 'payment/v2/updateUtr', method: 'post', params: { applyId, utr } }),
|
|
249
249
|
uploadCommonSlip: ({ applyId, slip }) => ({ url: 'payment/v2/uploadCommonSlip', method: 'post', params: { applyId, slip } }),
|
|
250
|
+
otpAcknowledge: ({ method, requestId, code }) => ({
|
|
251
|
+
url: `/payment/v2/${method}/withdraw-otp/acknowledge`,
|
|
252
|
+
method: 'post',
|
|
253
|
+
params: { requestId, code },
|
|
254
|
+
isPublic: true,
|
|
255
|
+
}),
|
|
256
|
+
otpReset: ({ method, requestId }) => ({
|
|
257
|
+
url: `/payment/v2/${method}/withdraw-otp/reset-otp`,
|
|
258
|
+
method: 'post',
|
|
259
|
+
params: { requestId },
|
|
260
|
+
isPublic: true,
|
|
261
|
+
}),
|
|
250
262
|
}
|
package/src/machine/game_v2_1.js
CHANGED
|
@@ -634,9 +634,14 @@ export default function (request) {
|
|
|
634
634
|
}
|
|
635
635
|
},
|
|
636
636
|
connectGame: async (context, event) => {
|
|
637
|
+
// [防呆] 確保有 providerId 和 gameId
|
|
638
|
+
const { providerId, gameId } = context.game || {}
|
|
639
|
+
if (!providerId || !gameId) {
|
|
640
|
+
return
|
|
641
|
+
}
|
|
637
642
|
const returnProviders = ['RSG', 'KP', 'EPICWIN', 'AMBSLOT', 'SEXY_VENUS', 'SEXY_SEXYBCRT', 'PG', 'NPG']
|
|
638
643
|
const { lang, isMobile, walletType } = context
|
|
639
|
-
const {
|
|
644
|
+
const { gameTypeId, mappingId } = context.game
|
|
640
645
|
const params = {
|
|
641
646
|
provider_id: providerId,
|
|
642
647
|
game_id: gameId,
|
|
@@ -23,6 +23,8 @@ export default function (request, context) {
|
|
|
23
23
|
requestId: null,
|
|
24
24
|
status: null,
|
|
25
25
|
target: null,
|
|
26
|
+
email: null,
|
|
27
|
+
number: null,
|
|
26
28
|
ttl: null,
|
|
27
29
|
},
|
|
28
30
|
states: {
|
|
@@ -117,29 +119,18 @@ export default function (request, context) {
|
|
|
117
119
|
RESET_OTP: {
|
|
118
120
|
target: 'reset',
|
|
119
121
|
},
|
|
120
|
-
BACK:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
// cond: 'isActivity',
|
|
124
|
-
// },
|
|
125
|
-
// {
|
|
126
|
-
// target: '#withdraw_vn2.cash.withdrawable',
|
|
127
|
-
// },
|
|
128
|
-
],
|
|
122
|
+
BACK: {
|
|
123
|
+
target: '#withdraw_manual_cash.calculated',
|
|
124
|
+
},
|
|
129
125
|
},
|
|
130
126
|
},
|
|
131
127
|
acknowledging: {
|
|
132
128
|
invoke: {
|
|
133
129
|
src: 'acknowledge',
|
|
134
|
-
onDone:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
// },
|
|
139
|
-
// {
|
|
140
|
-
// target: '#withdraw_vn2.cash.submitted',
|
|
141
|
-
// },
|
|
142
|
-
],
|
|
130
|
+
onDone: {
|
|
131
|
+
target: '#withdraw_manual_cash.submitted',
|
|
132
|
+
actions: 'setProcessing',
|
|
133
|
+
},
|
|
143
134
|
onError: {
|
|
144
135
|
target: 'idle',
|
|
145
136
|
},
|
|
@@ -203,26 +194,27 @@ export default function (request, context) {
|
|
|
203
194
|
}
|
|
204
195
|
}),
|
|
205
196
|
setOtp: assign((context, event) => {
|
|
206
|
-
const {
|
|
197
|
+
const { request_id, email, number, ttl } = event.data
|
|
207
198
|
return {
|
|
208
|
-
requestId,
|
|
209
|
-
|
|
210
|
-
|
|
199
|
+
requestId: request_id,
|
|
200
|
+
email,
|
|
201
|
+
number,
|
|
211
202
|
ttl,
|
|
212
203
|
}
|
|
213
204
|
}),
|
|
214
205
|
decreaseTtl: assign((context, evnet) => {
|
|
215
206
|
const second = context.ttl
|
|
216
207
|
return {
|
|
217
|
-
ttl: Math.max(second -
|
|
208
|
+
ttl: Math.max(second - 1000, 0),
|
|
218
209
|
}
|
|
219
210
|
}),
|
|
220
211
|
setVerificationData: assign((context, event) => {
|
|
221
|
-
const {
|
|
212
|
+
const { request_id, ttl, number, email } = event.data
|
|
222
213
|
return {
|
|
223
|
-
requestId,
|
|
214
|
+
requestId: request_id,
|
|
224
215
|
ttl,
|
|
225
|
-
|
|
216
|
+
number,
|
|
217
|
+
email,
|
|
226
218
|
}
|
|
227
219
|
}),
|
|
228
220
|
},
|
|
@@ -238,7 +230,7 @@ export default function (request, context) {
|
|
|
238
230
|
return selectedUserBank && selectedAmount > 0 && currentPayment.minimum <= selectedAmount && selectedAmount <= currentPayment.maximum
|
|
239
231
|
},
|
|
240
232
|
isOtpRequired: (context, event) => {
|
|
241
|
-
return event.data?.
|
|
233
|
+
return event.data?.request_id !== undefined
|
|
242
234
|
},
|
|
243
235
|
},
|
|
244
236
|
services: {
|
|
@@ -289,13 +281,13 @@ export default function (request, context) {
|
|
|
289
281
|
)
|
|
290
282
|
},
|
|
291
283
|
resetOtp: async (context, event) => {
|
|
292
|
-
const {
|
|
293
|
-
return await request.send(
|
|
284
|
+
const { currentPayment, requestId } = context
|
|
285
|
+
return await request.send(payment.otpReset({ method: currentPayment.method, requestId }))
|
|
294
286
|
},
|
|
295
287
|
acknowledge: async (context, event) => {
|
|
296
|
-
const {
|
|
288
|
+
const { currentPayment, requestId } = context
|
|
297
289
|
const code = event.data
|
|
298
|
-
return await request.send(
|
|
290
|
+
return await request.send(payment.otpAcknowledge({ method: currentPayment.method, requestId, code }))
|
|
299
291
|
},
|
|
300
292
|
},
|
|
301
293
|
}
|