@jetthai/cuora 1.1.373-dev-5 → 1.1.373-dev-7

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.373-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-6...v1.1.373-dev-7) (2025-08-23)
6
+
7
+ ### [1.1.373-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-5...v1.1.373-dev-6) (2025-08-22)
8
+
5
9
  ### [1.1.373-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-4...v1.1.373-dev-5) (2025-08-22)
6
10
 
7
11
  ### [1.1.373-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-3...v1.1.373-dev-4) (2025-08-22)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.373-dev-5",
3
+ "version": "1.1.373-dev-7",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -29,9 +29,10 @@ export default {
29
29
  method: 'get',
30
30
  params: { activityNo, appSecret },
31
31
  }),
32
- getActivityRanking: () => ({
32
+ getActivityRanking: ({ appSecret }) => ({
33
33
  url: 'activities/activity/ranking',
34
34
  method: 'get',
35
+ params: { appSecret },
35
36
  isPublic: true,
36
37
  }),
37
38
  getAchievements: ({ limit, page, appSecret }) => ({
package/src/api/game.js CHANGED
@@ -62,10 +62,10 @@ export default {
62
62
  method: 'get',
63
63
  params: { timestamp, appSecret },
64
64
  }),
65
- getListCategory: ({ categoryId, timestamp, index }) => ({
65
+ getListCategory: ({ categoryId, timestamp, index, appSecret }) => ({
66
66
  url: 'game/list/v3/category',
67
67
  method: 'get',
68
- params: { categoryId, timestamp, index },
68
+ params: { categoryId, timestamp, index, appSecret },
69
69
  }),
70
70
  getListAddition: ({ categoryId, timestamp, index, appSecret }) => ({
71
71
  url: 'game/list/v3/addition',
@@ -1,9 +1,9 @@
1
1
  export default {
2
2
  // 未登入排名資料
3
- getTournament: ({ activityNo, cycle, round, site }) => ({
3
+ getTournament: ({ activityNo, cycle, round, site, appSecret }) => ({
4
4
  url: 'tournament/detail',
5
5
  method: 'post',
6
- params: { activityNo, cycle, round, site },
6
+ params: { activityNo, cycle, round, site, appSecret },
7
7
  isPublic: true,
8
8
  }),
9
9
  // 登入後排名預設期數資料
@@ -27,9 +27,9 @@ export default function (request) {
27
27
  recentlyGame: [],
28
28
  youMayLike: [],
29
29
  selectedType: null,
30
- isYouMayLike: null,
31
- isRecentlyGame: null,
32
- isRecentlySearch: null,
30
+ isYouMayLike: false,
31
+ isRecentlyGame: false,
32
+ isRecentlySearch: false,
33
33
  },
34
34
  states: {
35
35
  init: {
@@ -388,7 +388,7 @@ export default function (request) {
388
388
  sendMayLikeTrace: async (context, event) => {
389
389
  return await request.send(
390
390
  game.setGameSearchTrace({
391
- isYouMayLike: 1,
391
+ isYouMayLike: true,
392
392
  })
393
393
  )
394
394
  },
@@ -21,9 +21,9 @@ export default function (request) {
21
21
  click: null,
22
22
  clickDefault: null,
23
23
  traceId: null,
24
- isYouMayLike: null,
25
- isRecentlyGame: null,
26
- isRecentlySearch: null,
24
+ isYouMayLike: false,
25
+ isRecentlyGame: false,
26
+ isRecentlySearch: false,
27
27
  gameCode: null,
28
28
  lang: 'en-US',
29
29
  },
@@ -119,9 +119,9 @@ export default function (request) {
119
119
  data: {
120
120
  tagId: context.tagList[0]?.id,
121
121
  traceData: {
122
- isYouMayLike: null,
123
- isRecentlyGame: null,
124
- isRecentlySearch: null,
122
+ isYouMayLike: false,
123
+ isRecentlyGame: false,
124
+ isRecentlySearch: false,
125
125
  },
126
126
  },
127
127
  })),
@@ -319,9 +319,9 @@ export default function (request) {
319
319
  tagIndex: null,
320
320
  gameCode: null,
321
321
  gameCodeIndex: null,
322
- isYouMayLike: null,
323
- isRecentlyGame: null,
324
- isRecentlySearch: null,
322
+ isYouMayLike: false,
323
+ isRecentlyGame: false,
324
+ isRecentlySearch: false,
325
325
  query: context.keyword,
326
326
  click: null,
327
327
  clickDefault: null,
@@ -523,6 +523,7 @@ export default function (request) {
523
523
  api.getListCategory({
524
524
  categoryId: category.id,
525
525
  index: 0,
526
+ appSecret,
526
527
  })
527
528
  )
528
529
  .then((res) => Object.assign({ downLine: res.data.filter((item) => item.isGame).slice(0, 20) }, category))
@@ -536,6 +537,7 @@ export default function (request) {
536
537
  api.getListCategory({
537
538
  categoryId: category.id,
538
539
  index: 0,
540
+ appSecret,
539
541
  })
540
542
  )
541
543
  .then((res) => Object.assign({ downLine: res.data.filter((item) => item.isGame).slice(0, 20) }, category))
@@ -195,7 +195,7 @@ export default function (request) {
195
195
  services: {
196
196
  fetchTournament: async (context) => {
197
197
  const { activityNo, cycle, round, site } = context
198
- const { data } = await request.send(ranking.getTournament({ activityNo, cycle, round, site }))
198
+ const { data } = await request.send(ranking.getTournament({ activityNo, cycle, round, site, appSecret }))
199
199
  return data
200
200
  },
201
201
  fetchRankingOptions: async (context) => {