@jetthai/cuora 1.1.80 → 1.1.82
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/package.json
CHANGED
|
@@ -192,7 +192,7 @@ export default function (request) {
|
|
|
192
192
|
},
|
|
193
193
|
awardPrize: async (context, event) => {
|
|
194
194
|
const { activityNo, uidSite, bindingCode } = context
|
|
195
|
-
const { data } = await request.send(api.sentAward({ activityNo, uidSite,
|
|
195
|
+
const { data } = await request.send(api.sentAward({ activityNo, uidSite, affiliateCode: bindingCode, appSecret }))
|
|
196
196
|
return data
|
|
197
197
|
},
|
|
198
198
|
fetchLevelDownLineList: async (context, event) => {
|
package/src/machine/game_v2_1.js
CHANGED
|
@@ -368,6 +368,7 @@ export default function (request) {
|
|
|
368
368
|
}
|
|
369
369
|
},
|
|
370
370
|
connectGame: async (context, event) => {
|
|
371
|
+
const returnProviders = ['RSG', 'KP', 'EPICWIN', 'KA', 'AMBSLOT', 'SEXY_VENUS', 'SEXY_SEXYBCRT', 'PG', 'NPG']
|
|
371
372
|
const { lang, isMobile } = context
|
|
372
373
|
const { providerId, gameId, gameTypeId, mappingId } = context.game
|
|
373
374
|
const params = {
|
|
@@ -378,7 +379,7 @@ export default function (request) {
|
|
|
378
379
|
is_demo: false,
|
|
379
380
|
is_mobile: isMobile,
|
|
380
381
|
lang,
|
|
381
|
-
return_url: window.location.href,
|
|
382
|
+
return_url: returnProviders.includes(providerId) ? `${window.location.origin}/return` : window.location.href, // For providers to return.
|
|
382
383
|
}
|
|
383
384
|
const { redirect_url } = await request.send(api.playGame(params))
|
|
384
385
|
return { gameURL: redirect_url }
|