@jetthai/cuora 1.0.135 → 1.0.136
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 +14 -0
- package/src/machine/game_search.js +2 -6
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.0.136](https://github.com/jetthai/cuora-module/compare/v1.0.135...v1.0.136) (2022-06-20)
|
|
6
|
+
|
|
5
7
|
### [1.0.135](https://github.com/jetthai/cuora-module/compare/v1.0.134...v1.0.135) (2022-06-16)
|
|
6
8
|
|
|
7
9
|
### [1.0.134](https://github.com/jetthai/cuora-module/compare/v1.0.133...v1.0.134) (2022-06-13)
|
package/package.json
CHANGED
package/src/api/game.js
CHANGED
|
@@ -29,4 +29,18 @@ export default {
|
|
|
29
29
|
clickDefault,
|
|
30
30
|
},
|
|
31
31
|
}),
|
|
32
|
+
gameHistory: ({ requestTimestamp, lang, provider, type }) => ({
|
|
33
|
+
url: 'game/history',
|
|
34
|
+
method: 'post',
|
|
35
|
+
params: { requestTimestamp, lang, provider, type },
|
|
36
|
+
}),
|
|
37
|
+
gameHistoryDetail: ({ requestTimestamp, provider, gameId, lang, page, row }) => ({
|
|
38
|
+
url: 'game/history/detail',
|
|
39
|
+
method: 'post',
|
|
40
|
+
params: { requestTimestamp, provider, gameId, lang, page, row },
|
|
41
|
+
}),
|
|
42
|
+
gameHistoryOptions: () => ({
|
|
43
|
+
url: 'game/history/options',
|
|
44
|
+
method: 'get',
|
|
45
|
+
}),
|
|
32
46
|
}
|
|
@@ -231,16 +231,12 @@ export default function (request) {
|
|
|
231
231
|
},
|
|
232
232
|
fetchGames: async (context, event) => {
|
|
233
233
|
const { tagId, tagIndex, keyword, click, clickDefault } = context
|
|
234
|
-
const { traceId, result } = await request.send(
|
|
235
|
-
game.getGameSearchList({ id: tagId, index: tagIndex, q: keyword, click, clickDefault })
|
|
236
|
-
)
|
|
234
|
+
const { traceId, result } = await request.send(game.getGameSearchList({ id: tagId, index: tagIndex, q: keyword, click, clickDefault }))
|
|
237
235
|
return { traceId, result }
|
|
238
236
|
},
|
|
239
237
|
sendTrace: async (context, event) => {
|
|
240
238
|
const { traceId, tagId, tagIndex, gameCode, gameCodeIndex, keyword: query, click, clickDefault } = context
|
|
241
|
-
return await request.send(
|
|
242
|
-
game.setGameSearchTrace({ traceId, tagId, tagIndex, gameCode, gameCodeIndex, query, click, clickDefault })
|
|
243
|
-
)
|
|
239
|
+
return await request.send(game.setGameSearchTrace({ traceId, tagId, tagIndex, gameCode, gameCodeIndex, query, click, clickDefault }))
|
|
244
240
|
},
|
|
245
241
|
},
|
|
246
242
|
}
|