@jetthai/cuora 1.1.365-v2api-2 → 1.1.365-v2api-3
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/payment.js +1 -1
- package/src/api/ranking.js +2 -2
- package/src/machine/ranking.js +2 -1
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.365-v2api-3](https://github.com/jetthai/cuora-module/compare/v1.1.365-v2api-2...v1.1.365-v2api-3) (2025-07-18)
|
|
6
|
+
|
|
5
7
|
### [1.1.365-v2api-2](https://github.com/jetthai/cuora-module/compare/v1.1.365-v2api-1...v1.1.365-v2api-2) (2025-07-17)
|
|
6
8
|
|
|
7
9
|
### [1.1.365-v2api-1](https://github.com/jetthai/cuora-module/compare/v1.1.365...v1.1.365-v2api-1) (2025-07-17)
|
package/package.json
CHANGED
package/src/api/payment.js
CHANGED
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
}),
|
|
9
9
|
getTransactionHistoryOptions: () => ({ url: 'payment/v2/category/options', method: 'get' }),
|
|
10
10
|
getPaymentInfo: () => ({ url: `payment/v2/paymentInfo`, method: 'get' }),
|
|
11
|
-
getBindingPaymentInfo: () => ({ url: `payment/getBindingPaymentInfo`, method: 'get' }),
|
|
11
|
+
getBindingPaymentInfo: () => ({ url: `payment/v2/getBindingPaymentInfo`, method: 'get' }),
|
|
12
12
|
updatePaymentInfo: ({
|
|
13
13
|
bankCode,
|
|
14
14
|
branch,
|
package/src/api/ranking.js
CHANGED
|
@@ -7,10 +7,10 @@ export default {
|
|
|
7
7
|
isPublic: true,
|
|
8
8
|
}),
|
|
9
9
|
// 登入後排名預設期數資料
|
|
10
|
-
getRankingOptions: ({ activityNo }) => ({
|
|
10
|
+
getRankingOptions: ({ activityNo, appSecret }) => ({
|
|
11
11
|
url: 'ranking/detail/option',
|
|
12
12
|
method: 'get',
|
|
13
|
-
params: { activityNo },
|
|
13
|
+
params: { activityNo, appSecret },
|
|
14
14
|
isPublic: true,
|
|
15
15
|
}),
|
|
16
16
|
// 登入後排名資料
|
package/src/machine/ranking.js
CHANGED
|
@@ -2,6 +2,7 @@ import { createMachine, assign } from 'xstate'
|
|
|
2
2
|
import ranking from '../api/ranking.js'
|
|
3
3
|
|
|
4
4
|
export default function (request) {
|
|
5
|
+
const { appSecret } = request.config
|
|
5
6
|
const cycleMapping = ['DAILY', 'WEEKLY', 'MONTHLY']
|
|
6
7
|
const limit = { DAILY: 56, WEEKLY: 8, MONTHLY: 2, ALL: 2 }
|
|
7
8
|
|
|
@@ -199,7 +200,7 @@ export default function (request) {
|
|
|
199
200
|
},
|
|
200
201
|
fetchRankingOptions: async (context) => {
|
|
201
202
|
const { activityNo } = context
|
|
202
|
-
const { data } = await request.send(ranking.getRankingOptions({ activityNo }))
|
|
203
|
+
const { data } = await request.send(ranking.getRankingOptions({ activityNo, appSecret }))
|
|
203
204
|
return data
|
|
204
205
|
},
|
|
205
206
|
fetchRankingDetail: async (context, event) => {
|