@jetthai/cuora 1.1.320-dev-6 → 1.1.320-dev-8

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.320-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-7...v1.1.320-dev-8) (2024-12-06)
6
+
7
+ ### [1.1.320-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-6...v1.1.320-dev-7) (2024-12-05)
8
+
5
9
  ### [1.1.320-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.325-dev-2...v1.1.320-dev-6) (2024-12-04)
6
10
 
7
11
  ### [1.1.325-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.325-dev-1...v1.1.325-dev-2) (2024-12-04)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.320-dev-6",
3
+ "version": "1.1.320-dev-8",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
package/src/api/game.js CHANGED
@@ -92,5 +92,5 @@ export default {
92
92
  addListFavorite: (code) => ({ method: 'post', url: 'game/list/v3/addMyFavorite', params: { games: [code] } }),
93
93
  removeListFavorite: (code) => ({ method: 'post', url: 'game/list/v3/removeMyFavorite', params: { games: [code] } }),
94
94
  getGameInfo: ({ appSecret, gameCode }) => ({ method: 'get', url: 'game/info', params: { appSecret, gameCode } }),
95
- getGameReplayInfo: () => ({ method: 'post', url: 'game/history/detail' }),
95
+ getGameReplayInfo: ({ providerId, seqNo, lang }) => ({ method: 'get', url: 'game/gameReplay', params: { providerId, seqNo, lang } }),
96
96
  }
@@ -127,6 +127,7 @@ export default function (request) {
127
127
  actualRebateAmount = '0',
128
128
  rewardType = null,
129
129
  singleMinimumAmountReceive = 0,
130
+ dailyMaximumAmountReceive = 0,
130
131
  remainingCount = 0,
131
132
  dailyRedemptionLimit = 0,
132
133
  reachedAmountLimit = false,
@@ -146,6 +147,7 @@ export default function (request) {
146
147
  actualRebateAmount,
147
148
  rewardType,
148
149
  singleMinimumAmountReceive,
150
+ dailyMaximumAmountReceive,
149
151
  remainingCount,
150
152
  dailyRedemptionLimit,
151
153
  reachedAmountLimit,
@@ -3,7 +3,7 @@ import game from '../api/game.js'
3
3
 
4
4
  export default function (request, context) {
5
5
  // const { appSecret } = request.config
6
- // const { gameCode } = context
6
+ const { providerId, seqNo, lang } = context
7
7
  return createMachine(
8
8
  {
9
9
  id: 'game_replay',
@@ -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())
41
+ return await request.send(game.getGameReplayInfo({ providerId, seqNo, lang }))
42
42
  },
43
43
  },
44
44
  }
@@ -9,6 +9,7 @@ import game_search_cash from './game_search_cash.js'
9
9
  import game_search_v2 from './game_search_v2.js'
10
10
  import game_hot_new from './game_hot_new.js'
11
11
  import game_info from './game_info.js'
12
+ import game_replay from './game_replay.js'
12
13
  import inbox from './inbox.js'
13
14
  import merge from './merge.js'
14
15
  import payment_data from './payment_data.js'
@@ -49,6 +50,7 @@ export default {
49
50
  game_search_v2,
50
51
  game_hot_new,
51
52
  game_info,
53
+ game_replay,
52
54
  inbox,
53
55
  merge,
54
56
  payment_data,