@jetthai/cuora 1.1.387-dev-4 → 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 CHANGED
@@ -2,6 +2,12 @@
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
+
5
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)
6
12
 
7
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)
@@ -12,6 +18,10 @@ All notable changes to this project will be documented in this file. See [standa
12
18
 
13
19
  ### [1.1.387-dev](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.387-dev) (2025-09-26)
14
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
+
15
25
  ### [1.1.387](https://github.com/jetthai/cuora-module/compare/v1.1.386...v1.1.387) (2025-09-23)
16
26
 
17
27
  ### [1.1.386](https://github.com/jetthai/cuora-module/compare/v1.1.385...v1.1.386) (2025-09-19)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.387-dev-4",
3
+ "version": "1.1.387-dev-5",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -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 }
@@ -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 }
@@ -142,6 +142,10 @@ const supportVersion2List = [
142
142
  'game/history/options',
143
143
  // 09/30
144
144
  'pixel',
145
+ // 10/09
146
+ 'account-binding/status',
147
+ 'account-binding/bind',
148
+ 'account-binding/acknowledge',
145
149
  ]
146
150
 
147
151
  function isValid(value) {