@jetthai/cuora 1.1.374-dev-3 → 1.1.374-dev-4
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 +2 -0
- package/package.json +1 -1
- package/src/api/game.js +2 -2
- package/src/machine/game_replay.js +2 -2
- package/src/machine/game_v2_1.js +1 -0
- package/src/request/request.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.374-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.374-dev-3...v1.1.374-dev-4) (2025-09-09)
|
|
6
|
+
|
|
5
7
|
### [1.1.374-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.374-dev-2...v1.1.374-dev-3) (2025-09-09)
|
|
6
8
|
|
|
7
9
|
### [1.1.374-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.374-dev-1...v1.1.374-dev-2) (2025-09-02)
|
package/package.json
CHANGED
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 }) => ({
|
|
93
|
+
getGameReplayInfo: ({ providerId, seqNo, lang, appSecret }) => ({
|
|
94
94
|
method: 'get',
|
|
95
95
|
url: 'game/gameReplay',
|
|
96
|
-
params: { providerId, seqNo, lang },
|
|
96
|
+
params: { providerId, seqNo, lang, appSecret },
|
|
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
|
-
|
|
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 }))
|
|
41
|
+
return await request.send(game.getGameReplayInfo({ providerId, seqNo, lang, appSecret }))
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
}
|
package/src/machine/game_v2_1.js
CHANGED
|
@@ -636,6 +636,7 @@ export default function (request) {
|
|
|
636
636
|
mapping_id: mappingId,
|
|
637
637
|
is_mobile: isMobile === 'mobile' ? 'y' : null,
|
|
638
638
|
lang,
|
|
639
|
+
appSecret,
|
|
639
640
|
}
|
|
640
641
|
const { type, redirect_url, gameToken, gameHtml, is_demo } = await request.send(api.demoGame(params))
|
|
641
642
|
// 將 is_demo 設置到 context.game.isDemo
|
package/src/request/request.js
CHANGED
|
@@ -135,6 +135,10 @@ const supportVersion2List = [
|
|
|
135
135
|
'activities/activity/ranking',
|
|
136
136
|
'activities/cashRain',
|
|
137
137
|
'activities/jackpot/list',
|
|
138
|
+
// 09/09
|
|
139
|
+
'getAnnouncements',
|
|
140
|
+
'game/list/v3/gameInfo',
|
|
141
|
+
'payment/v2/uploadCommonSlip',
|
|
138
142
|
]
|
|
139
143
|
|
|
140
144
|
function isValid(value) {
|