@jetthai/cuora 1.1.353-dev-7 → 1.1.353-dev-8
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/machine/ranking.js +15 -19
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.353-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.353-dev-7...v1.1.353-dev-8) (2025-04-15)
|
|
6
|
+
|
|
5
7
|
### [1.1.353-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.353-dev-6...v1.1.353-dev-7) (2025-04-14)
|
|
6
8
|
|
|
7
9
|
### [1.1.353-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.353-dev-5...v1.1.353-dev-6) (2025-04-14)
|
package/package.json
CHANGED
package/src/machine/ranking.js
CHANGED
|
@@ -65,30 +65,26 @@ export default function (request) {
|
|
|
65
65
|
getRankingOptions: {
|
|
66
66
|
invoke: {
|
|
67
67
|
src: 'fetchRankingOptions',
|
|
68
|
-
onDone:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
target: 'getRankingGames',
|
|
73
|
-
actions: 'setRankingOptions',
|
|
74
|
-
},
|
|
75
|
-
// 有登入但不為冠軍活動: 直接拿排行榜資料
|
|
76
|
-
{
|
|
77
|
-
cond: 'hasAuth',
|
|
78
|
-
target: 'getRankingDetail',
|
|
79
|
-
actions: 'setRankingOptions',
|
|
80
|
-
},
|
|
81
|
-
// 未登入; 拿未登入的排行榜資料
|
|
82
|
-
{
|
|
83
|
-
target: 'getTournament',
|
|
84
|
-
actions: 'setRankingOptions',
|
|
85
|
-
},
|
|
86
|
-
],
|
|
68
|
+
onDone: {
|
|
69
|
+
target: 'decideNextAfterOptions',
|
|
70
|
+
actions: 'setRankingOptions',
|
|
71
|
+
},
|
|
87
72
|
onError: {
|
|
88
73
|
target: 'idle',
|
|
89
74
|
},
|
|
90
75
|
},
|
|
91
76
|
},
|
|
77
|
+
// 取得排名選單資料後的跳轉
|
|
78
|
+
decideNextAfterOptions: {
|
|
79
|
+
always: [
|
|
80
|
+
// 有登入且為冠軍: 先拿遊戲排行榜再拿排行榜資料
|
|
81
|
+
{ target: 'getRankingGames', cond: 'canGetGameRanking' },
|
|
82
|
+
// 有登入但不為冠軍活動: 直接拿排行榜資料
|
|
83
|
+
{ target: 'getRankingDetail', cond: 'hasAuth' },
|
|
84
|
+
// 未登入; 拿未登入的排行榜資料
|
|
85
|
+
{ target: 'getTournament' },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
92
88
|
// 未登入時取得排名資料
|
|
93
89
|
getTournament: {
|
|
94
90
|
invoke: {
|