@jetthai/cuora 1.1.395 → 1.1.397

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.397](https://github.com/jetthai/cuora-module/compare/v1.1.396...v1.1.397) (2025-11-17)
6
+
7
+ ### [1.1.396](https://github.com/jetthai/cuora-module/compare/v1.1.395...v1.1.396) (2025-11-13)
8
+
5
9
  ### [1.1.395](https://github.com/jetthai/cuora-module/compare/v1.1.394...v1.1.395) (2025-11-11)
6
10
 
7
11
  ### [1.1.394](https://github.com/jetthai/cuora-module/compare/v1.1.393...v1.1.394) (2025-11-04)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.395",
3
+ "version": "1.1.397",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -466,7 +466,9 @@ export default function (request) {
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
+ // 但 ZALO 仍維持 v1
470
+ const fullURL =
471
+ ['OZE', 'ZAZA'].includes(clientId) && provider !== 'zalo' ? request.config.fullURL.replace('/v1/', '/v2/') : request.config.fullURL
470
472
 
471
473
  const redirectURL = urljoin(
472
474
  fullURL,
@@ -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 }