@jetthai/cuora 1.1.394-dev-4 → 1.1.394-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 +4 -0
- package/package.json +1 -1
- package/src/machine/auth.js +2 -1
- package/src/machine/game_v2_1.js +5 -4
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.394-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-5...v1.1.394-dev-6) (2025-11-13)
|
|
6
|
+
|
|
7
|
+
### [1.1.394-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-4...v1.1.394-dev-5) (2025-11-11)
|
|
8
|
+
|
|
5
9
|
### [1.1.394-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-3...v1.1.394-dev-4) (2025-11-11)
|
|
6
10
|
|
|
7
11
|
### [1.1.394-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-2...v1.1.394-dev-3) (2025-11-10)
|
package/package.json
CHANGED
package/src/machine/auth.js
CHANGED
|
@@ -465,7 +465,8 @@ export default function (request) {
|
|
|
465
465
|
referralObj.channel = storage.get('channel') || defaultChannel || channel
|
|
466
466
|
referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel
|
|
467
467
|
|
|
468
|
-
|
|
468
|
+
// OZE、ZAZA 先使用 v2 測試 ,等待確認沒問題後再統一用 v2
|
|
469
|
+
const fullURL = ['OZE', 'ZAZA'].includes(clientId) ? request.config.fullURL.replace('/v1/', '/v2/') : request.config.fullURL
|
|
469
470
|
|
|
470
471
|
const redirectURL = urljoin(
|
|
471
472
|
fullURL,
|
package/src/machine/game_v2_1.js
CHANGED
|
@@ -40,6 +40,7 @@ export default function (request) {
|
|
|
40
40
|
portrait: null,
|
|
41
41
|
gameCode: null,
|
|
42
42
|
name: null,
|
|
43
|
+
gameName: null,
|
|
43
44
|
isDemo: false,
|
|
44
45
|
},
|
|
45
46
|
walletType: null,
|
|
@@ -450,15 +451,15 @@ export default function (request) {
|
|
|
450
451
|
},
|
|
451
452
|
}),
|
|
452
453
|
setGameInfo: assign((context, event) => {
|
|
453
|
-
const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name } = event.data.game
|
|
454
|
-
return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name } }
|
|
454
|
+
const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name, gameName } = event.data.game
|
|
455
|
+
return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name, gameName } }
|
|
455
456
|
}),
|
|
456
457
|
setSwitch: assign((context, event) => {
|
|
457
458
|
return { switchGame: event.data.game }
|
|
458
459
|
}),
|
|
459
460
|
setSwitchGameInfo: assign((context, event) => {
|
|
460
|
-
const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name } = context.switchGame
|
|
461
|
-
return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name } }
|
|
461
|
+
const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name, gameName } = context.switchGame
|
|
462
|
+
return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name, gameName } }
|
|
462
463
|
}),
|
|
463
464
|
setWalletType: assign((context, event) => {
|
|
464
465
|
return { walletType: event.data.walletType }
|