@jetthai/cuora 1.1.389-dev-4 → 1.1.389
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 +0 -14
- package/package.json +1 -1
- package/src/api/activity.js +0 -1
- package/src/api/common.js +0 -5
- package/src/api/index.js +1 -2
- package/src/machine/bank_binding.js +0 -16
- package/src/machine/common.js +1 -13
- package/src/machine/side_v2.js +2 -2
- package/src/request/request.js +0 -7
- package/src/api/account.js +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,20 +2,6 @@
|
|
|
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.389-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.389-dev-3...v1.1.389-dev-4) (2025-10-17)
|
|
6
|
-
|
|
7
|
-
### [1.1.389-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.390...v1.1.389-dev-3) (2025-10-13)
|
|
8
|
-
|
|
9
|
-
### [1.1.389-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.389-dev-1...v1.1.389-dev-2) (2025-10-13)
|
|
10
|
-
|
|
11
|
-
### [1.1.389-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.389...v1.1.389-dev-1) (2025-10-09)
|
|
12
|
-
|
|
13
|
-
### [1.1.389-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.389-dev-1...v1.1.389-dev-2) (2025-10-13)
|
|
14
|
-
|
|
15
|
-
### [1.1.389-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.389...v1.1.389-dev-1) (2025-10-09)
|
|
16
|
-
|
|
17
|
-
### [1.1.390](https://github.com/jetthai/cuora-module/compare/v1.1.389...v1.1.390) (2025-10-13)
|
|
18
|
-
|
|
19
5
|
### [1.1.389](https://github.com/jetthai/cuora-module/compare/v1.1.388...v1.1.389) (2025-10-07)
|
|
20
6
|
|
|
21
7
|
### [1.1.388](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.388) (2025-10-07)
|
package/package.json
CHANGED
package/src/api/activity.js
CHANGED
|
@@ -85,7 +85,6 @@ 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' }),
|
|
89
88
|
getRankingList: () => ({ url: 'activities/ranking', method: 'get' }),
|
|
90
89
|
exchangeDiamond: ({ activityNo, exchangeAward = [] }) => ({
|
|
91
90
|
url: 'activities/exchange/diamond',
|
package/src/api/common.js
CHANGED
|
@@ -7,9 +7,4 @@ export default {
|
|
|
7
7
|
getNavbar: ({ appSecret } = {}) => ({ url: 'getNavbarSetting', params: { appSecret }, method: 'get', isPublic: true }),
|
|
8
8
|
getDefaultAffiliateCode: ({ appSecret }) => ({ url: 'getAffiliateCode', params: { appSecret }, method: 'get', isPublic: true }),
|
|
9
9
|
getSiteInfoConfig: ({ appSecret, config }) => ({ url: 'get-site-config', method: 'get', params: { appSecret, config }, isPublic: true }),
|
|
10
|
-
sendPixel: ({ appSecret, eventId, fbc, fbp, event }) => ({
|
|
11
|
-
url: 'pixel',
|
|
12
|
-
method: 'post',
|
|
13
|
-
params: { appSecret, eventId, fbc, fbp, event },
|
|
14
|
-
}),
|
|
15
10
|
}
|
package/src/api/index.js
CHANGED
|
@@ -7,6 +7,5 @@ import payment from './payment.js'
|
|
|
7
7
|
import user from './user.js'
|
|
8
8
|
import form from './form.js'
|
|
9
9
|
import ranking from './ranking.js'
|
|
10
|
-
import account from './account.js'
|
|
11
10
|
|
|
12
|
-
export default { activity, auth, common, game, mailbox, payment, user, form, ranking
|
|
11
|
+
export default { activity, auth, common, game, mailbox, payment, user, form, ranking }
|
|
@@ -149,22 +149,6 @@ export default function (request) {
|
|
|
149
149
|
target: 'binding',
|
|
150
150
|
cond: 'isBindable',
|
|
151
151
|
},
|
|
152
|
-
RESET_FORM: {
|
|
153
|
-
actions: assign((context, event) => {
|
|
154
|
-
return {
|
|
155
|
-
bank: null,
|
|
156
|
-
ifscCode: null,
|
|
157
|
-
crypto: null,
|
|
158
|
-
network: null,
|
|
159
|
-
cryptoAddress: null,
|
|
160
|
-
walletCode: null,
|
|
161
|
-
branch: null,
|
|
162
|
-
branchCode: null,
|
|
163
|
-
accountNumber: null,
|
|
164
|
-
pixType: null,
|
|
165
|
-
}
|
|
166
|
-
}),
|
|
167
|
-
},
|
|
168
152
|
},
|
|
169
153
|
},
|
|
170
154
|
binding: {
|
package/src/machine/common.js
CHANGED
|
@@ -55,7 +55,7 @@ export default function (request) {
|
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
57
|
fetching: {
|
|
58
|
-
entry: ['setUA', 'setAgent', 'setPixel', 'setKPixel'
|
|
58
|
+
entry: ['setUA', 'setAgent', 'setPixel', 'setKPixel'],
|
|
59
59
|
invoke: {
|
|
60
60
|
src: 'fetchConfig',
|
|
61
61
|
onDone: [
|
|
@@ -237,18 +237,6 @@ export default function (request) {
|
|
|
237
237
|
isMobile: userAgent?.device?.type,
|
|
238
238
|
}
|
|
239
239
|
}),
|
|
240
|
-
setFbclid: assign(() => {
|
|
241
|
-
const urlParams = new URLSearchParams(window.location.search)
|
|
242
|
-
const fbclid = urlParams.get('fbclid') || ''
|
|
243
|
-
if (fbclid !== '') {
|
|
244
|
-
const timestamp = Date.now()
|
|
245
|
-
const cookieRecord = 'fb.1.' + timestamp + '.' + fbclid
|
|
246
|
-
document.cookie = `_fbc=${cookieRecord}; path=/; max-age=${60 * 60 * 24 * 7}`
|
|
247
|
-
}
|
|
248
|
-
return {
|
|
249
|
-
fbclid,
|
|
250
|
-
}
|
|
251
|
-
}),
|
|
252
240
|
setPixel: assign(() => {
|
|
253
241
|
let urlParams = new URLSearchParams(window.location.search)
|
|
254
242
|
const pix = urlParams.get('pix') || storage.get('pix') || ''
|
package/src/machine/side_v2.js
CHANGED
|
@@ -176,9 +176,9 @@ function isItemInMenu(targetItem, menuList) {
|
|
|
176
176
|
if (result) {
|
|
177
177
|
return true
|
|
178
178
|
} else {
|
|
179
|
-
if (currentItem
|
|
179
|
+
if (currentItem.categoryId === targetItem.categoryId) {
|
|
180
180
|
return true
|
|
181
|
-
} else if (currentItem
|
|
181
|
+
} else if (currentItem.sub?.length) {
|
|
182
182
|
return isItemInMenu(targetItem, currentItem.sub)
|
|
183
183
|
} else {
|
|
184
184
|
return false
|
package/src/request/request.js
CHANGED
|
@@ -111,7 +111,6 @@ const supportVersion2List = [
|
|
|
111
111
|
'activities/types',
|
|
112
112
|
'activities/promo',
|
|
113
113
|
'activities/viptable',
|
|
114
|
-
'activities/level-bonus/info',
|
|
115
114
|
'activities/numbers',
|
|
116
115
|
'activities/honorBroadcast',
|
|
117
116
|
'activities/exchange/diamond/max-amount',
|
|
@@ -140,12 +139,6 @@ const supportVersion2List = [
|
|
|
140
139
|
'game/list/v3/gameInfo',
|
|
141
140
|
'payment/v2/uploadCommonSlip',
|
|
142
141
|
'game/history/options',
|
|
143
|
-
// 09/30
|
|
144
|
-
'pixel',
|
|
145
|
-
// 10/09
|
|
146
|
-
'account-binding/status',
|
|
147
|
-
'account-binding/bind',
|
|
148
|
-
'account-binding/acknowledge',
|
|
149
142
|
]
|
|
150
143
|
|
|
151
144
|
function isValid(value) {
|
package/src/api/account.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
// 取得綁定狀態
|
|
3
|
-
bindingStatus: () => ({ url: 'account-binding/status', method: 'get' }),
|
|
4
|
-
// 申請綁定(手機/信箱/帳號/Telegram) #TODO Telegram 綁定有需要傳遞的參數,後端說可以跟WELL確認
|
|
5
|
-
applyBinding: (data) => ({ url: 'account-binding/bind', method: 'post', params: data }),
|
|
6
|
-
bindingVerification: (data) => ({ url: 'account-binding/acknowledge', method: 'post', params: data }),
|
|
7
|
-
// #TODO 第三方綁定(參數要參考第三方註冊的參數,方法也待確)
|
|
8
|
-
// bindThirdParty: () => ({ url: 'account-binding/bind-third-party', method: ''}),
|
|
9
|
-
}
|