@jetthai/cuora 1.1.387-dev-3 → 1.1.387-dev-5
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 +12 -0
- package/package.json +1 -1
- package/src/api/account.js +9 -0
- package/src/api/index.js +2 -1
- package/src/machine/common.js +1 -1
- package/src/machine/side_v2.js +2 -2
- package/src/request/request.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.387-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.387-dev-4...v1.1.387-dev-5) (2025-10-09)
|
|
6
|
+
|
|
7
|
+
### [1.1.389](https://github.com/jetthai/cuora-module/compare/v1.1.388...v1.1.389) (2025-10-07)
|
|
8
|
+
|
|
9
|
+
### [1.1.388](https://github.com/jetthai/cuora-module/compare/v1.1.387-dev-3...v1.1.388) (2025-10-07)
|
|
10
|
+
|
|
11
|
+
### [1.1.387-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.387-dev-3...v1.1.387-dev-4) (2025-10-09)
|
|
12
|
+
|
|
5
13
|
### [1.1.387-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.387-dev-2...v1.1.387-dev-3) (2025-10-01)
|
|
6
14
|
|
|
7
15
|
### [1.1.387-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.387-dev-1...v1.1.387-dev-2) (2025-10-01)
|
|
@@ -10,6 +18,10 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
10
18
|
|
|
11
19
|
### [1.1.387-dev](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.387-dev) (2025-09-26)
|
|
12
20
|
|
|
21
|
+
### [1.1.389](https://github.com/jetthai/cuora-module/compare/v1.1.388...v1.1.389) (2025-10-07)
|
|
22
|
+
|
|
23
|
+
### [1.1.388](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.388) (2025-10-07)
|
|
24
|
+
|
|
13
25
|
### [1.1.387](https://github.com/jetthai/cuora-module/compare/v1.1.386...v1.1.387) (2025-09-23)
|
|
14
26
|
|
|
15
27
|
### [1.1.386](https://github.com/jetthai/cuora-module/compare/v1.1.385...v1.1.386) (2025-09-19)
|
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
package/src/api/index.js
CHANGED
|
@@ -7,5 +7,6 @@ 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'
|
|
10
11
|
|
|
11
|
-
export default { activity, auth, common, game, mailbox, payment, user, form, ranking }
|
|
12
|
+
export default { activity, auth, common, game, mailbox, payment, user, form, ranking, account }
|
package/src/machine/common.js
CHANGED
|
@@ -323,7 +323,7 @@ export default function (request) {
|
|
|
323
323
|
const { broadcastList, mailBoxInfo } = event.data
|
|
324
324
|
const { siteConfig } = context
|
|
325
325
|
const customerMessageEnable = siteConfig?.csChat?.some((item) => item.enable && item.name === 'customermessage')
|
|
326
|
-
if (!customerMessageEnable) {
|
|
326
|
+
if (!customerMessageEnable && mailBoxInfo) {
|
|
327
327
|
mailBoxInfo.rows -= mailBoxInfo.detailRows?.CUSTOMER || 0
|
|
328
328
|
}
|
|
329
329
|
return { broadcastList, mailBoxInfo }
|
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