@jetthai/cuora 1.1.320-dev-5 → 1.1.320-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,16 @@
|
|
|
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-7](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-6...v1.1.320-dev-7) (2024-12-05)
|
|
6
|
+
|
|
7
|
+
### [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)
|
|
8
|
+
|
|
9
|
+
### [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)
|
|
10
|
+
|
|
11
|
+
### [1.1.325-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.325...v1.1.325-dev-1) (2024-12-04)
|
|
12
|
+
|
|
13
|
+
### [1.1.325](https://github.com/jetthai/cuora-module/compare/v1.1.324...v1.1.325) (2024-12-04)
|
|
14
|
+
|
|
5
15
|
### [1.1.320-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-4...v1.1.320-dev-5) (2024-12-02)
|
|
6
16
|
|
|
7
17
|
### [1.1.320-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-3...v1.1.320-dev-4) (2024-12-02)
|
|
@@ -12,6 +22,24 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
12
22
|
|
|
13
23
|
### [1.1.320-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.320...v1.1.320-dev-1) (2024-11-29)
|
|
14
24
|
|
|
25
|
+
### [1.1.320-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-4...v1.1.320-dev-5) (2024-12-02)
|
|
26
|
+
|
|
27
|
+
### [1.1.320-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-3...v1.1.320-dev-4) (2024-12-02)
|
|
28
|
+
|
|
29
|
+
### [1.1.320-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-2...v1.1.320-dev-3) (2024-12-02)
|
|
30
|
+
|
|
31
|
+
### [1.1.320-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.320-dev-1...v1.1.320-dev-2) (2024-11-29)
|
|
32
|
+
|
|
33
|
+
### [1.1.320-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.320...v1.1.320-dev-1) (2024-11-29)
|
|
34
|
+
|
|
35
|
+
### [1.1.324](https://github.com/jetthai/cuora-module/compare/v1.1.323...v1.1.324) (2024-12-04)
|
|
36
|
+
|
|
37
|
+
### [1.1.323](https://github.com/jetthai/cuora-module/compare/v1.1.322...v1.1.323) (2024-12-04)
|
|
38
|
+
|
|
39
|
+
### [1.1.322](https://github.com/jetthai/cuora-module/compare/v1.1.321...v1.1.322) (2024-12-03)
|
|
40
|
+
|
|
41
|
+
### [1.1.321](https://github.com/jetthai/cuora-module/compare/v1.1.320...v1.1.321) (2024-12-02)
|
|
42
|
+
|
|
15
43
|
### [1.1.320](https://github.com/jetthai/cuora-module/compare/v1.1.319...v1.1.320) (2024-11-26)
|
|
16
44
|
|
|
17
45
|
### [1.1.319](https://github.com/jetthai/cuora-module/compare/v1.1.318...v1.1.319) (2024-11-26)
|
package/package.json
CHANGED
package/src/api/game.js
CHANGED
|
@@ -92,4 +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: ({ providerId, seqNo, lang }) => ({ method: 'get', url: 'game/gameReplay', params: { providerId, seqNo, lang } }),
|
|
95
96
|
}
|
|
@@ -269,8 +269,8 @@ export default function (request) {
|
|
|
269
269
|
fetchFriendsList: async (context, event) => {
|
|
270
270
|
const { currentType, listPage, friendsList } = context
|
|
271
271
|
const copiedObj = JSON.parse(JSON.stringify(friendsList))
|
|
272
|
-
const copiedList = copiedObj.
|
|
273
|
-
const resopnseData = await request.send(user.getFriendsList({ type: currentType, page: listPage, row:
|
|
272
|
+
const copiedList = copiedObj.list
|
|
273
|
+
const resopnseData = await request.send(user.getFriendsList({ type: currentType, page: listPage, row: 15 }))
|
|
274
274
|
if (!!copiedList && !!resopnseData?.data?.list) {
|
|
275
275
|
const combindData = {
|
|
276
276
|
...resopnseData.data,
|
package/src/machine/common.js
CHANGED
|
@@ -309,7 +309,8 @@ export default function (request) {
|
|
|
309
309
|
guards: {
|
|
310
310
|
isAffiliateCodeInstructionsEnable: (context, event) => {
|
|
311
311
|
const { siteConfig } = event.data
|
|
312
|
-
|
|
312
|
+
const { registerBindingAffiliateCodeInstructionsEnable } = siteConfig || {}
|
|
313
|
+
return registerBindingAffiliateCodeInstructionsEnable ? JSON.parse(registerBindingAffiliateCodeInstructionsEnable) : false
|
|
313
314
|
},
|
|
314
315
|
},
|
|
315
316
|
services: {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { assign, createMachine } from 'xstate'
|
|
2
|
+
import game from '../api/game.js'
|
|
3
|
+
|
|
4
|
+
export default function (request, context) {
|
|
5
|
+
// const { appSecret } = request.config
|
|
6
|
+
const { providerId, seqNo, lang } = context
|
|
7
|
+
return createMachine(
|
|
8
|
+
{
|
|
9
|
+
id: 'game_replay',
|
|
10
|
+
initial: 'fetching',
|
|
11
|
+
context: {
|
|
12
|
+
gameReplayInfo: {},
|
|
13
|
+
},
|
|
14
|
+
states: {
|
|
15
|
+
fetching: {
|
|
16
|
+
invoke: {
|
|
17
|
+
src: 'fetchGameReplayInfo',
|
|
18
|
+
onDone: {
|
|
19
|
+
target: 'idle',
|
|
20
|
+
actions: 'setGameReplayInfo',
|
|
21
|
+
},
|
|
22
|
+
onError: {
|
|
23
|
+
target: 'idle',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
idle: {},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
actions: {
|
|
32
|
+
setGameReplayInfo: assign((context, event) => {
|
|
33
|
+
return {
|
|
34
|
+
gameReplayInfo: event.data.data,
|
|
35
|
+
}
|
|
36
|
+
}),
|
|
37
|
+
},
|
|
38
|
+
services: {
|
|
39
|
+
// 取得遊戲重播資訊
|
|
40
|
+
fetchGameReplayInfo: async (context, event) => {
|
|
41
|
+
return await request.send(game.getGameReplayInfo({ providerId, seqNo, lang }))
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
}
|
package/src/machine/index.js
CHANGED
|
@@ -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,
|