@jetthai/cuora 1.1.375-qa-2 → 1.1.376

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,9 +2,7 @@
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.375-qa-2](https://github.com/jetthai/cuora-module/compare/v1.1.375-qa-1...v1.1.375-qa-2) (2025-09-09)
6
-
7
- ### [1.1.375-qa-1](https://github.com/jetthai/cuora-module/compare/v1.1.375...v1.1.375-qa-1) (2025-09-09)
5
+ ### [1.1.376](https://github.com/jetthai/cuora-module/compare/v1.1.375...v1.1.376) (2025-09-09)
8
6
 
9
7
  ### [1.1.375](https://github.com/jetthai/cuora-module/compare/v1.1.374...v1.1.375) (2025-08-31)
10
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.375-qa-2",
3
+ "version": "1.1.376",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
package/src/api/game.js CHANGED
@@ -90,10 +90,10 @@ export default {
90
90
  addListFavorite: (code) => ({ method: 'post', url: 'game/list/v3/addMyFavorite', params: { games: [code] } }),
91
91
  removeListFavorite: (code) => ({ method: 'post', url: 'game/list/v3/removeMyFavorite', params: { games: [code] } }),
92
92
  getGameInfo: ({ appSecret, gameCode }) => ({ method: 'get', url: 'game/info', params: { appSecret, gameCode } }),
93
- getGameReplayInfo: ({ providerId, seqNo, lang, appSecret }) => ({
93
+ getGameReplayInfo: ({ providerId, seqNo, lang }) => ({
94
94
  method: 'get',
95
95
  url: 'game/gameReplay',
96
- params: { providerId, seqNo, lang, appSecret },
96
+ params: { providerId, seqNo, lang },
97
97
  isPublic: true,
98
98
  }),
99
99
  getFreeGameList: () => ({ method: 'get', url: 'activities/getFreeGameRewardList' }),
@@ -2,7 +2,7 @@ import { assign, createMachine } from 'xstate'
2
2
  import game from '../api/game.js'
3
3
 
4
4
  export default function (request, context) {
5
- const { appSecret } = request.config
5
+ // const { appSecret } = request.config
6
6
  const { providerId, seqNo, lang } = context
7
7
  return createMachine(
8
8
  {
@@ -38,7 +38,7 @@ export default function (request, context) {
38
38
  services: {
39
39
  // 取得遊戲重播資訊
40
40
  fetchGameReplayInfo: async (context, event) => {
41
- return await request.send(game.getGameReplayInfo({ providerId, seqNo, lang, appSecret }))
41
+ return await request.send(game.getGameReplayInfo({ providerId, seqNo, lang }))
42
42
  },
43
43
  },
44
44
  }
@@ -636,7 +636,6 @@ export default function (request) {
636
636
  mapping_id: mappingId,
637
637
  is_mobile: isMobile === 'mobile' ? 'y' : null,
638
638
  lang,
639
- appSecret,
640
639
  }
641
640
  const { type, redirect_url, gameToken, gameHtml, is_demo } = await request.send(api.demoGame(params))
642
641
  // 將 is_demo 設置到 context.game.isDemo
@@ -134,10 +134,6 @@ const supportVersion2List = [
134
134
  'activities/activity/ranking',
135
135
  'activities/cashRain',
136
136
  'activities/jackpot/list',
137
- // 09/09
138
- 'getAnnouncements',
139
- 'game/list/v3/gameInfo',
140
- 'payment/v2/uploadCommonSlip',
141
137
  ]
142
138
 
143
139
  function isValid(value) {
@@ -254,8 +250,9 @@ export default class Request {
254
250
  return supportedUrl === cleanUrl
255
251
  })
256
252
 
257
- // 目前全站都支援V2,若有需要限制為V1的站點可以填入,此段等轉換全部完成之後就可以移除了
258
- const supportV2Toggle = [''].includes(this.config?.clientId)
253
+ // 如果站點是ZAZA,則不支援V2版本的API
254
+ // clientId 可參照各站環境設定檔案
255
+ const supportV2Toggle = ['ZAZA'].includes(this.config?.clientId)
259
256
 
260
257
  if (isV2Supported && !supportV2Toggle) {
261
258
  fullURL = fullURL.replace('/v1/', '/v2/')