@jetthai/cuora 1.1.256-jackpot-1 → 1.1.256

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,8 +2,6 @@
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.256-jackpot-1](https://github.com/jetthai/cuora-module/compare/v1.1.256...v1.1.256-jackpot-1) (2024-05-07)
6
-
7
5
  ### [1.1.256](https://github.com/jetthai/cuora-module/compare/v1.1.255...v1.1.256) (2024-05-03)
8
6
 
9
7
  ### [1.1.255](https://github.com/jetthai/cuora-module/compare/v1.1.254...v1.1.255) (2024-05-03)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.256-jackpot-1",
3
+ "version": "1.1.256",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
package/src/api/game.js CHANGED
@@ -89,11 +89,6 @@ export default {
89
89
  method: 'get',
90
90
  params: { timestamp },
91
91
  }),
92
- getJackpotList: ({ appSecret }) => ({
93
- url: 'activities/jackpot/list',
94
- method: 'get',
95
- params: { appSecret },
96
- }),
97
92
  addListFavorite: (code) => ({ method: 'post', url: 'game/list/v3/addMyFavorite', params: { games: [code] } }),
98
93
  removeListFavorite: (code) => ({ method: 'post', url: 'game/list/v3/removeMyFavorite', params: { games: [code] } }),
99
94
  }
@@ -5,7 +5,6 @@ import { GAME_SEARCH } from '../util/constant.js'
5
5
 
6
6
  // 對應 intersectionObserver 版本
7
7
  export default function (request) {
8
- const { appSecret } = request.config
9
8
  return createMachine(
10
9
  {
11
10
  id: 'game',
@@ -23,14 +22,12 @@ export default function (request) {
23
22
  parentCategoryId: null,
24
23
  totalPage: 0,
25
24
  },
26
- jackpots: [],
27
25
  additionEnable: false,
28
26
  addition: {
29
27
  data: [],
30
28
  timestamp: null,
31
29
  totalPage: 0,
32
30
  },
33
- isJackpot: true,
34
31
  staticData: [],
35
32
  // play params
36
33
  game: {
@@ -62,9 +59,6 @@ export default function (request) {
62
59
  SET_ADDITION_ENABLE: {
63
60
  actions: 'setAdditionEnable',
64
61
  },
65
- SET_IS_JACKPOT: {
66
- actions: 'setIsJackpot',
67
- },
68
62
  LOAD: {
69
63
  target: 'routing',
70
64
  actions: 'setLoadable',
@@ -254,11 +248,6 @@ export default function (request) {
254
248
  additionEnable: event.data,
255
249
  }
256
250
  }),
257
- setIsJackpot: assign((context, event) => {
258
- return {
259
- isJackpot: event.data,
260
- }
261
- }),
262
251
  setLoadable: assign((context, event) => {
263
252
  return {
264
253
  loadable: event.data,
@@ -299,14 +288,9 @@ export default function (request) {
299
288
  }
300
289
  }),
301
290
  appendContent: assign((context, event) => {
302
- const { room, additionEnable, isJackpot } = context
291
+ const { room, additionEnable } = context
303
292
  if (room.categoryId === GAME_SEARCH) {
304
293
  return
305
- } else if (isJackpot) {
306
- const [jackpots] = event.data
307
- return {
308
- jackpots,
309
- }
310
294
  } else if (additionEnable) {
311
295
  const [content, addition] = event.data
312
296
  return {
@@ -431,11 +415,9 @@ export default function (request) {
431
415
  }
432
416
  },
433
417
  getPageContent: async (context, event) => {
434
- const { room, index, additionEnable, isJackpot, staticData } = context
418
+ const { room, index, additionEnable, staticData } = context
435
419
  if (room.categoryId === GAME_SEARCH) {
436
420
  return
437
- } else if (isJackpot) {
438
- return await Promise.all([request.send(api.getJackpotList({ appSecret }))])
439
421
  } else if (!request.getToken()) {
440
422
  const list = staticData.find((data) => data.category == room.categoryId)?.info || []
441
423