@jetthai/cuora 1.1.374-dev-1 → 1.1.374-dev-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 +4 -0
- package/package.json +1 -1
- package/src/api/activity.js +1 -0
- package/src/request/request.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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-3](https://github.com/jetthai/cuora-module/compare/v1.1.374-dev-2...v1.1.374-dev-3) (2025-09-09)
|
|
6
|
+
|
|
7
|
+
### [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)
|
|
8
|
+
|
|
5
9
|
### [1.1.374-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.375...v1.1.374-dev-1) (2025-08-31)
|
|
6
10
|
|
|
7
11
|
### [1.1.374-dev](https://github.com/jetthai/cuora-module/compare/v1.1.374...v1.1.374-dev) (2025-08-29)
|
package/package.json
CHANGED
package/src/api/activity.js
CHANGED
|
@@ -85,6 +85,7 @@ export default {
|
|
|
85
85
|
exchange: (data) => ({ url: 'activities/exchange', method: 'post', params: data }),
|
|
86
86
|
collect: (data) => ({ url: 'activities/collect', method: 'post', params: data }),
|
|
87
87
|
getVipTable: ({ appSecret }) => ({ url: 'activities/viptable', method: 'get', params: { appSecret } }),
|
|
88
|
+
getLevelBonusInfo: () => ({ url: 'activities/level-bonus/info', method: 'get' }),
|
|
88
89
|
getRankingList: () => ({ url: 'activities/ranking', method: 'get' }),
|
|
89
90
|
exchangeDiamond: ({ activityNo, exchangeAward = [] }) => ({
|
|
90
91
|
url: 'activities/exchange/diamond',
|
package/src/request/request.js
CHANGED
|
@@ -111,6 +111,7 @@ const supportVersion2List = [
|
|
|
111
111
|
'activities/types',
|
|
112
112
|
'activities/promo',
|
|
113
113
|
'activities/viptable',
|
|
114
|
+
'activities/level-bonus/info',
|
|
114
115
|
'activities/numbers',
|
|
115
116
|
'activities/honorBroadcast',
|
|
116
117
|
'activities/exchange/diamond/max-amount',
|
|
@@ -250,9 +251,8 @@ export default class Request {
|
|
|
250
251
|
return supportedUrl === cleanUrl
|
|
251
252
|
})
|
|
252
253
|
|
|
253
|
-
//
|
|
254
|
-
|
|
255
|
-
const supportV2Toggle = ['ZAZA'].includes(this.config?.clientId)
|
|
254
|
+
// 目前全站都支援V2,若有需要限制為V1的站點可以填入,此段等轉換全部完成之後就可以移除了
|
|
255
|
+
const supportV2Toggle = [''].includes(this.config?.clientId)
|
|
256
256
|
|
|
257
257
|
if (isV2Supported && !supportV2Toggle) {
|
|
258
258
|
fullURL = fullURL.replace('/v1/', '/v2/')
|