@jetthai/cuora 1.1.394-dev-8 → 1.1.395-payment-1

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +1 -125
  2. package/package.json +1 -1
  3. package/resetGitBranch.sh +10 -0
  4. package/src/api/activity.js +4 -6
  5. package/src/api/auth.js +2 -2
  6. package/src/api/common.js +1 -6
  7. package/src/api/game.js +13 -25
  8. package/src/api/index.js +1 -3
  9. package/src/api/payment.js +5 -9
  10. package/src/api/ranking.js +6 -6
  11. package/src/api/user.js +10 -15
  12. package/src/lib/{fingerprint_v3_11_12.js → fingerprint_v3_11_5.js} +4205 -3742
  13. package/src/machine/activity/continue_deposit_activity.js +1 -2
  14. package/src/machine/activity/fafafa_activity.js +5 -39
  15. package/src/machine/activity/return_bonus_activity.js +1 -2
  16. package/src/machine/activity/roulette_activity_v2.js +0 -5
  17. package/src/machine/activity/sign_in_activity.js +1 -2
  18. package/src/machine/activity/specify_bets_activity.js +1 -2
  19. package/src/machine/activity/specify_turnover_activity.js +1 -2
  20. package/src/machine/auth.js +7 -13
  21. package/src/machine/auth_otp_v3.js +11 -42
  22. package/src/machine/bank_binding.js +10 -67
  23. package/src/machine/common.js +9 -47
  24. package/src/machine/deposit/amb.js +1 -1
  25. package/src/machine/deposit/crypto_bank.js +2 -10
  26. package/src/machine/deposit/crypto_bank_cash.js +2 -10
  27. package/src/machine/deposit/crypto_way.js +2 -10
  28. package/src/machine/deposit/crypto_way_cash.js +2 -10
  29. package/src/machine/deposit/deposit_fc.js +3 -11
  30. package/src/machine/deposit/direct.js +4 -12
  31. package/src/machine/deposit/direct_cash.js +4 -12
  32. package/src/machine/deposit/float.js +4 -12
  33. package/src/machine/deposit/loadcard_cash.js +3 -11
  34. package/src/machine/deposit/loadcard_vn.js +3 -11
  35. package/src/machine/deposit/manual_cash.js +4 -12
  36. package/src/machine/deposit/manual_vn.js +3 -11
  37. package/src/machine/deposit/qrcode_cash.js +3 -11
  38. package/src/machine/deposit/qrcode_v2.js +3 -11
  39. package/src/machine/deposit/virtual_bank_cash.js +3 -11
  40. package/src/machine/deposit/virtual_bank_vn.js +3 -11
  41. package/src/machine/deposit/vpay.js +4 -12
  42. package/src/machine/game_replay.js +2 -2
  43. package/src/machine/game_search_cash.js +7 -10
  44. package/src/machine/game_search_v2.js +10 -10
  45. package/src/machine/game_v2_1.js +13 -27
  46. package/src/machine/honor_board_cash.js +1 -1
  47. package/src/machine/inbox.js +8 -22
  48. package/src/machine/index.js +0 -2
  49. package/src/machine/ranking.js +11 -14
  50. package/src/machine/reward.js +5 -58
  51. package/src/machine/reward_cash.js +3 -60
  52. package/src/machine/reward_fc.js +1 -2
  53. package/src/machine/roulette_v2.js +0 -4
  54. package/src/machine/side_cash.js +2 -3
  55. package/src/machine/side_v2.js +4 -5
  56. package/src/machine/user_reset_password.js +4 -5
  57. package/src/machine/user_sign_up.js +2 -6
  58. package/src/machine/vip_table.js +4 -11
  59. package/src/machine/withdraw/withdraw_crypto_cash.js +2 -10
  60. package/src/machine/withdraw/withdraw_manual.js +96 -11
  61. package/src/machine/withdraw/withdraw_manual_cash.js +1 -1
  62. package/src/request/request.js +7 -258
  63. package/src/util/deviceToken.js +2 -26
  64. package/src/util/index.js +2 -2
  65. package/src/util/storage.js +4 -18
  66. package/src/api/account.js +0 -8
  67. package/src/api/otp.js +0 -5
  68. package/src/machine/game_betslip.js +0 -46
package/CHANGELOG.md CHANGED
@@ -2,140 +2,16 @@
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.394-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-7...v1.1.394-dev-8) (2025-11-21)
6
-
7
- ### [1.1.394-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.399...v1.1.394-dev-7) (2025-11-20)
8
-
9
- ### [1.1.394-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.396...v1.1.394-dev-6) (2025-11-13)
10
-
11
- ### [1.1.394-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-4...v1.1.394-dev-5) (2025-11-11)
12
-
13
- ### [1.1.394-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-3...v1.1.394-dev-4) (2025-11-11)
14
-
15
- ### [1.1.394-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-2...v1.1.394-dev-3) (2025-11-10)
16
-
17
- ### [1.1.394-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-1...v1.1.394-dev-2) (2025-11-10)
18
-
19
- ### Features
20
-
21
- - 新增活動週期自動更新檢查機制 ([d80ff18](https://github.com/jetthai/cuora-module/commit/d80ff188b25fb1576fd25edc8ed985ae1f1b6af6))
22
-
23
- ### [1.1.394-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.394...v1.1.394-dev-1) (2025-11-10)
24
-
25
- ### [1.1.394-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-5...v1.1.394-dev-6) (2025-11-13)
26
-
27
- ### [1.1.394-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-4...v1.1.394-dev-5) (2025-11-11)
28
-
29
- ### [1.1.394-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-3...v1.1.394-dev-4) (2025-11-11)
30
-
31
- ### [1.1.394-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-2...v1.1.394-dev-3) (2025-11-10)
32
-
33
- ### [1.1.394-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.394-dev-1...v1.1.394-dev-2) (2025-11-10)
34
-
35
- ### Features
36
-
37
- - 新增活動週期自動更新檢查機制 ([d80ff18](https://github.com/jetthai/cuora-module/commit/d80ff188b25fb1576fd25edc8ed985ae1f1b6af6))
38
-
39
- ### [1.1.394-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.394...v1.1.394-dev-1) (2025-11-10)
40
-
41
- ### [1.1.394](https://github.com/jetthai/cuora-module/compare/v1.1.393...v1.1.394) (2025-11-04)
42
-
43
- ### [1.1.393](https://github.com/jetthai/cuora-module/compare/v1.1.392...v1.1.393) (2025-10-17)
44
-
45
- ### [1.1.392](https://github.com/jetthai/cuora-module/compare/v1.1.391...v1.1.392) (2025-10-17)
46
-
47
- ### [1.1.391](https://github.com/jetthai/cuora-module/compare/v1.1.390...v1.1.391) (2025-10-15)
48
-
49
- ### [1.1.390](https://github.com/jetthai/cuora-module/compare/v1.1.389...v1.1.390) (2025-10-13)
50
-
51
- ### [1.1.389](https://github.com/jetthai/cuora-module/compare/v1.1.388...v1.1.389) (2025-10-07)
52
-
53
- ### [1.1.388](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.388) (2025-10-07)
54
-
55
- ### [1.1.387](https://github.com/jetthai/cuora-module/compare/v1.1.386...v1.1.387) (2025-09-23)
56
-
57
- ### [1.1.386](https://github.com/jetthai/cuora-module/compare/v1.1.385...v1.1.386) (2025-09-19)
58
-
59
- ### [1.1.385](https://github.com/jetthai/cuora-module/compare/v1.1.384...v1.1.385) (2025-09-17)
60
-
61
- ### [1.1.384](https://github.com/jetthai/cuora-module/compare/v1.1.383...v1.1.384) (2025-09-16)
62
-
63
- ### [1.1.383](https://github.com/jetthai/cuora-module/compare/v1.1.382...v1.1.383) (2025-09-16)
64
-
65
- ### [1.1.382](https://github.com/jetthai/cuora-module/compare/v1.1.381...v1.1.382) (2025-09-16)
66
-
67
- ### [1.1.381](https://github.com/jetthai/cuora-module/compare/v1.1.380...v1.1.381) (2025-09-15)
68
-
69
- ### [1.1.380](https://github.com/jetthai/cuora-module/compare/v1.1.379...v1.1.380) (2025-09-11)
70
-
71
- ### [1.1.379](https://github.com/jetthai/cuora-module/compare/v1.1.378...v1.1.379) (2025-09-09)
72
-
73
- ### [1.1.378](https://github.com/jetthai/cuora-module/compare/v1.1.377...v1.1.378) (2025-09-09)
74
-
75
- ### [1.1.377](https://github.com/jetthai/cuora-module/compare/v1.1.376...v1.1.377) (2025-09-09)
76
-
77
- ### [1.1.376](https://github.com/jetthai/cuora-module/compare/v1.1.375...v1.1.376) (2025-09-09)
78
-
79
- ### [1.1.375](https://github.com/jetthai/cuora-module/compare/v1.1.374...v1.1.375) (2025-08-31)
80
-
81
- ### [1.1.374](https://github.com/jetthai/cuora-module/compare/v1.1.373...v1.1.374) (2025-08-28)
82
-
83
- ### [1.1.373](https://github.com/jetthai/cuora-module/compare/v1.1.372...v1.1.373) (2025-08-13)
84
-
85
- ### [1.1.372](https://github.com/jetthai/cuora-module/compare/v1.1.371...v1.1.372) (2025-08-12)
86
-
87
- ### [1.1.371](https://github.com/jetthai/cuora-module/compare/v1.1.370...v1.1.371) (2025-08-11)
88
-
89
- ### [1.1.370](https://github.com/jetthai/cuora-module/compare/v1.1.369...v1.1.370) (2025-08-07)
90
-
91
- ### [1.1.369](https://github.com/jetthai/cuora-module/compare/v1.1.368...v1.1.369) (2025-08-06)
92
-
93
- ### [1.1.368](https://github.com/jetthai/cuora-module/compare/v1.1.367...v1.1.368) (2025-07-28)
94
-
95
- ### [1.1.367](https://github.com/jetthai/cuora-module/compare/v1.1.366...v1.1.367) (2025-07-22)
96
-
97
- ### [1.1.366-v2api-2](https://github.com/jetthai/cuora-module/compare/v1.1.366-v2api-1...v1.1.366-v2api-2) (2025-07-18)
98
-
99
- ### [1.1.366-v2api-1](https://github.com/jetthai/cuora-module/compare/v1.1.366...v1.1.366-v2api-1) (2025-07-18)
100
-
101
- ### [1.1.366](https://github.com/jetthai/cuora-module/compare/v1.1.365...v1.1.366) (2025-07-18)
102
-
103
- ### [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)
104
-
105
- ### [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)
106
-
107
- ### [1.1.365-v2api-1](https://github.com/jetthai/cuora-module/compare/v1.1.365...v1.1.365-v2api-1) (2025-07-17)
108
-
109
- ### [1.1.365](https://github.com/jetthai/cuora-module/compare/v1.1.364...v1.1.365) (2025-07-08)
110
-
111
- ### [1.1.364](https://github.com/jetthai/cuora-module/compare/v1.1.363...v1.1.364) (2025-06-23)
112
-
113
- ### [1.1.363](https://github.com/jetthai/cuora-module/compare/v1.1.362...v1.1.363) (2025-06-23)
114
-
115
- ### [1.1.362](https://github.com/jetthai/cuora-module/compare/v1.1.361...v1.1.362) (2025-06-20)
116
-
117
- ### [1.1.361-v2api-1](https://github.com/jetthai/cuora-module/compare/v1.1.361...v1.1.361-v2api-1) (2025-06-05)
118
-
119
- ### [1.1.361](https://github.com/jetthai/cuora-module/compare/v1.1.360...v1.1.361) (2025-06-03)
120
-
121
- ### [1.1.360](https://github.com/jetthai/cuora-module/compare/v1.1.359...v1.1.360) (2025-06-03)
122
-
123
- ### [1.1.358-apiv2-2](https://github.com/jetthai/cuora-module/compare/v1.1.359...v1.1.358-apiv2-2) (2025-05-27)
5
+ ### [1.1.395-payment-1](https://github.com/jetthai/cuora-module/compare/v1.1.359...v1.1.395-payment-1) (2025-05-27)
124
6
 
125
7
  ### [1.1.359](https://github.com/jetthai/cuora-module/compare/v1.1.358...v1.1.359) (2025-05-23)
126
8
 
127
- ### [1.1.358-apiv2-1](https://github.com/jetthai/cuora-module/compare/v1.1.358...v1.1.358-apiv2-1) (2025-05-09)
128
-
129
9
  ### [1.1.358](https://github.com/jetthai/cuora-module/compare/v1.1.357...v1.1.358) (2025-05-09)
130
10
 
131
11
  ### [1.1.357](https://github.com/jetthai/cuora-module/compare/v1.1.356...v1.1.357) (2025-05-06)
132
12
 
133
13
  ### [1.1.356](https://github.com/jetthai/cuora-module/compare/v1.1.355...v1.1.356) (2025-04-29)
134
14
 
135
- ### [1.1.355-apiv2-2](https://github.com/jetthai/cuora-module/compare/v1.1.355-apiv2-1...v1.1.355-apiv2-2) (2025-05-07)
136
-
137
- ### [1.1.355-apiv2-1](https://github.com/jetthai/cuora-module/compare/v1.1.355...v1.1.355-apiv2-1) (2025-05-05)
138
-
139
15
  ### [1.1.355](https://github.com/jetthai/cuora-module/compare/v1.1.353-data-1...v1.1.355) (2025-04-22)
140
16
 
141
17
  ### [1.1.354](https://github.com/jetthai/cuora-module/compare/v1.1.353...v1.1.354) (2025-04-14)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.394-dev-8",
3
+ "version": "1.1.395-payment-1",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
package/resetGitBranch.sh CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  set -e
4
4
 
5
+ # 等待使用者確認是否繼續
6
+ function wait_for_confirmation() {
7
+ read -p "是否繼續執行? (Yes/Y 繼續): " confirm
8
+ if [[ "$confirm" != "Yes" && "$confirm" != "Y" && "$confirm" != "yes" && "$confirm" != "y" ]]; then
9
+ echo "操作已中止"
10
+ exit 1
11
+ fi
12
+ }
13
+
5
14
  # 切換到 master 分支
6
15
  git checkout master
7
16
  if [ $? -ne 0 ]; then
@@ -15,6 +24,7 @@ if [ $? -ne 0 ]; then
15
24
  echo "從 origin 拉取 master 分支失敗"
16
25
  exit 1
17
26
  fi
27
+ wait_for_confirmation
18
28
 
19
29
  # 刪除本地的 dev 分支
20
30
  git branch -D dev
@@ -29,10 +29,9 @@ export default {
29
29
  method: 'get',
30
30
  params: { activityNo, appSecret },
31
31
  }),
32
- getActivityRanking: ({ appSecret }) => ({
32
+ getActivityRanking: () => ({
33
33
  url: 'activities/activity/ranking',
34
34
  method: 'get',
35
- params: { appSecret },
36
35
  isPublic: true,
37
36
  }),
38
37
  getAchievements: ({ limit, page, appSecret }) => ({
@@ -70,10 +69,10 @@ export default {
70
69
  method: 'get',
71
70
  params: { rewardType },
72
71
  }),
73
- getRewardList: ({ rewardType, count, appSecret, orderColum, lang }) => ({
72
+ getRewardList: ({ rewardType, count, appSecret }) => ({
74
73
  url: 'activities/rewards',
75
74
  method: 'get',
76
- params: { rewardType, count, appSecret, orderColum, lang },
75
+ params: { rewardType, count, appSecret },
77
76
  }),
78
77
  getCashRainReward: ({ activityNo, appSecret }) => ({
79
78
  url: `activities/cashRain`,
@@ -84,8 +83,7 @@ export default {
84
83
  settleAmount: (data) => ({ url: 'activities/exchange/diamond/settle', method: 'post', params: data }),
85
84
  exchange: (data) => ({ url: 'activities/exchange', method: 'post', params: data }),
86
85
  collect: (data) => ({ url: 'activities/collect', method: 'post', params: data }),
87
- getVipTable: ({ appSecret }) => ({ url: 'activities/viptable', method: 'get', params: { appSecret } }),
88
- getLevelBonusInfo: () => ({ url: 'activities/level-bonus/info', method: 'get' }),
86
+ getVipTable: () => ({ url: 'activities/viptable', method: 'get' }),
89
87
  getRankingList: () => ({ url: 'activities/ranking', method: 'get' }),
90
88
  exchangeDiamond: ({ activityNo, exchangeAward = [] }) => ({
91
89
  url: 'activities/exchange/diamond',
package/src/api/auth.js CHANGED
@@ -54,10 +54,10 @@ export default {
54
54
  method: 'post',
55
55
  params: { provider, countryCode, phone, email },
56
56
  }),
57
- checkAccount: ({ account, nick_name, strategy, appSecret }) => ({
57
+ checkAccount: ({ account, nick_name, strategy }) => ({
58
58
  url: 'checkAccount',
59
59
  method: 'post',
60
- params: { account, nick_name, strategy, appSecret },
60
+ params: { account, nick_name, strategy },
61
61
  isPublic: true,
62
62
  }),
63
63
  }
package/src/api/common.js CHANGED
@@ -2,14 +2,9 @@ export default {
2
2
  getConfig: ({ appSecret }) => ({ url: 'getConfig', method: 'get', params: { appSecret }, isPublic: true }),
3
3
  getLayoutConfig: ({ appSecret }) => ({ url: 'getQuickLayout', method: 'get', params: { appSecret }, isPublic: true }),
4
4
  feeds: ({ appSecret }) => ({ url: 'feeds', method: 'get', params: { appSecret }, isPublic: true }),
5
- broadcast: () => ({ url: 'broadcast', method: 'get', params: { appSecret }, isPublic: true }),
5
+ broadcast: () => ({ url: 'broadcast', method: 'get', isPublic: true }),
6
6
  getAnnouncements: ({ appSecret }) => ({ url: 'getAnnouncements', params: { appSecret }, method: 'get', isPublic: true }),
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/game.js CHANGED
@@ -7,7 +7,7 @@ export default {
7
7
  demoGame: (params) => ({ url: 'game/demo', method: 'get', params, isPublic: true }),
8
8
  logoutGame: ({ uid_site, provider_id }) => ({ url: 'game/logout', method: 'get', params: { uid_site, provider_id } }),
9
9
 
10
- getGameTags: ({ q, lang, limit = 20 }) => ({ url: 'game/search', method: 'get', params: { q, lang, limit } }),
10
+ getGameTags: ({ q, lang }) => ({ url: 'game/search', method: 'get', params: { q, lang } }),
11
11
  getGameSearchHome: () => ({ url: 'game/search/home', method: 'get' }),
12
12
  getGameSearchList: ({ id, index, q, click, clickDefault, providerName }) => ({
13
13
  url: 'game/search/list',
@@ -57,30 +57,30 @@ export default {
57
57
  url: 'game/history/options',
58
58
  method: 'get',
59
59
  }),
60
- getListRoot: ({ timestamp, appSecret } = {}) => ({
60
+ getListRoot: ({ timestamp } = {}) => ({
61
61
  url: 'game/list/v3/root',
62
62
  method: 'get',
63
- params: { timestamp, appSecret },
63
+ params: { timestamp },
64
64
  }),
65
- getListCategory: ({ categoryId, timestamp, index, appSecret }) => ({
65
+ getListCategory: ({ categoryId, timestamp, index }) => ({
66
66
  url: 'game/list/v3/category',
67
67
  method: 'get',
68
- params: { categoryId, timestamp, index, appSecret },
68
+ params: { categoryId, timestamp, index },
69
69
  }),
70
- getListAddition: ({ categoryId, timestamp, index, appSecret }) => ({
70
+ getListAddition: ({ categoryId, timestamp, index }) => ({
71
71
  url: 'game/list/v3/addition',
72
72
  method: 'get',
73
- params: { categoryId, timestamp, index, appSecret },
73
+ params: { categoryId, timestamp, index },
74
74
  }),
75
- getListCategoryByRange: ({ categoryId, timestamp, end, appSecret }) => ({
75
+ getListCategoryByRange: ({ categoryId, timestamp, end }) => ({
76
76
  url: 'game/list/v3/categoryByRange',
77
77
  method: 'get',
78
- params: { categoryId, timestamp, end, appSecret },
78
+ params: { categoryId, timestamp, end },
79
79
  }),
80
- getListAdditionByRange: ({ categoryId, timestamp, end, appSecret }) => ({
80
+ getListAdditionByRange: ({ categoryId, timestamp, end }) => ({
81
81
  url: 'game/list/v3/additionByRange',
82
82
  method: 'get',
83
- params: { categoryId, timestamp, end, appSecret },
83
+ params: { categoryId, timestamp, end },
84
84
  }),
85
85
  getListMyFavorite: ({ timestamp } = {}) => ({
86
86
  url: 'game/list/v3/myFavorite',
@@ -90,25 +90,13 @@ export default {
90
90
  addListFavorite: (code) => ({ method: 'post', url: 'game/list/v3/addMyFavorite', params: { games: [code] } }),
91
91
  removeListFavorite: (code) => ({ method: 'post', url: 'game/list/v3/removeMyFavorite', params: { games: [code] } }),
92
92
  getGameInfo: ({ appSecret, gameCode }) => ({ method: 'get', url: 'game/info', params: { appSecret, gameCode } }),
93
- getGameReplayInfo: ({ providerId, seqNo, lang, appSecret }) => ({
93
+ getGameReplayInfo: ({ providerId, seqNo, lang }) => ({
94
94
  method: 'get',
95
95
  url: 'game/gameReplay',
96
- params: { providerId, seqNo, lang, appSecret },
96
+ params: { providerId, seqNo, lang },
97
97
  isPublic: true,
98
98
  }),
99
99
  getFreeGameList: () => ({ method: 'get', url: 'activities/getFreeGameRewardList' }),
100
100
  getFreeGameReward: ({ activityNo, receiveNo }) => ({ method: 'post', url: 'activities/getFreeGameReward', params: { activityNo, receiveNo } }),
101
101
  getV3GameInfo: ({ appSecret, gameCodes }) => ({ method: 'post', url: 'game/list/v3/gameInfo', params: { appSecret, gameCodes } }),
102
- getProvableResult: ({ providerId, seqNo, lang, uidSite, appSecret }) => ({
103
- method: 'get',
104
- url: 'game/provable-result',
105
- params: { providerId, seqNo, lang, uidSite, appSecret },
106
- isPublic: true,
107
- }),
108
- getBetslip: ({ providerId, seqNo, lang, appSecret }) => ({
109
- method: 'get',
110
- url: 'game/betslip',
111
- params: { providerId, seqNo, lang, appSecret },
112
- isPublic: true,
113
- }),
114
102
  }
package/src/api/index.js CHANGED
@@ -7,7 +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
- import otp from './otp.js'
12
10
 
13
- export default { activity, auth, common, game, mailbox, payment, user, form, ranking, account, otp }
11
+ export default { activity, auth, common, game, mailbox, payment, user, form, ranking }
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  getPaymentHistory: (returnDays) => ({ url: 'payment/v2/history', method: 'post', params: { returnDays } }),
3
- getSpotMarket: () => ({ url: 'payment/v2/spotmarket', method: 'get' }),
3
+ getSpotMarket: () => ({ url: 'payment/spotmarket', method: 'get' }),
4
4
  getTransactionHistory: (payload) => ({
5
5
  url: 'payment/v2/transactionHistory',
6
6
  method: 'post',
@@ -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/v2/getBindingPaymentInfo`, method: 'get' }),
11
+ getBindingPaymentInfo: () => ({ url: `payment/getBindingPaymentInfo`, method: 'get' }),
12
12
  updatePaymentInfo: ({
13
13
  bankCode,
14
14
  branch,
@@ -19,8 +19,6 @@ export default {
19
19
  lastNameTh,
20
20
  firstNameEn,
21
21
  lastNameEn,
22
- firstNameLocale,
23
- lastNameLocale,
24
22
  bonus,
25
23
  paymentProvider,
26
24
  pixType,
@@ -43,8 +41,6 @@ export default {
43
41
  lastNameTh,
44
42
  firstNameEn,
45
43
  lastNameEn,
46
- firstNameLocale,
47
- lastNameLocale,
48
44
  bonus,
49
45
  paymentProvider,
50
46
  pixType,
@@ -58,7 +54,7 @@ export default {
58
54
  }),
59
55
  getBankList: (paymentMethod) => ({ url: `payment/v2/${paymentMethod}/getBankList`, method: 'get' }),
60
56
  getBindingBankList: ({ appSecret }) => ({ url: 'payment/v2/getBindingBankList', method: 'get', params: { appSecret }, isPublic: true }),
61
- getBindingPaymentList: ({ appSecret }) => ({ url: 'payment/v2/getBindingPaymentList', method: 'get', params: { appSecret }, isPublic: true }),
57
+ getBindingPaymentList: ({ appSecret }) => ({ url: 'payment/getBindingPaymentList', method: 'get', params: { appSecret }, isPublic: true }),
62
58
  getWithdrawBankList: () => ({ url: 'payment/v2/getWithdrawBankList', method: 'get' }),
63
59
  makeTransaction: ({ type, payload, paymentMethod }) => ({
64
60
  url: `payment/v2/${paymentMethod}/transaction`,
@@ -68,7 +64,7 @@ export default {
68
64
  ...payload,
69
65
  },
70
66
  }),
71
- checkTransaction: (paymentMethod) => ({ url: `payment/v2/${paymentMethod}/checkTransaction`, method: 'post' }),
67
+ checkTransaction: (paymentMethod) => ({ url: `payment/${paymentMethod}/checkTransaction`, method: 'post' }),
72
68
  setBonusSetting: ({ bonus }) => ({ url: 'payment/v2/setting', method: 'post', params: { bonus } }),
73
69
  getCurrentWithdrawRule: () => ({ url: 'payment/v2/getCurrentWithdrawRule', method: 'get' }),
74
70
  getDoubleWalletWithdrawRule: ({ walletType }) => ({
@@ -81,7 +77,7 @@ export default {
81
77
  method: 'post',
82
78
  params: { exchangeType, cryptoNetwork, targetAddress },
83
79
  }),
84
- mergeWallet: () => ({ url: 'payment/v2/mergeWallet', method: 'post' }),
80
+ mergeWallet: () => ({ url: 'payment/mergeWallet', method: 'post' }),
85
81
  getPaymentDetail: ({ transferType } = {}) => ({
86
82
  url: 'payment/v2/paymentDetail',
87
83
  method: 'post',
@@ -1,16 +1,16 @@
1
1
  export default {
2
2
  // 未登入排名資料
3
- getTournament: ({ activityNo, cycle, round, site, appSecret }) => ({
3
+ getTournament: ({ activityNo, cycle, round, site }) => ({
4
4
  url: 'tournament/detail',
5
5
  method: 'post',
6
- params: { activityNo, cycle, round, site, appSecret },
6
+ params: { activityNo, cycle, round, site },
7
7
  isPublic: true,
8
8
  }),
9
9
  // 登入後排名預設期數資料
10
- getRankingOptions: ({ activityNo, appSecret }) => ({
10
+ getRankingOptions: ({ activityNo }) => ({
11
11
  url: 'ranking/detail/option',
12
12
  method: 'get',
13
- params: { activityNo, appSecret },
13
+ params: { activityNo },
14
14
  isPublic: true,
15
15
  }),
16
16
  // 登入後排名資料
@@ -19,9 +19,9 @@ export default {
19
19
  method: 'post',
20
20
  params: { activityNo, cycle, round },
21
21
  }),
22
- getRankingGames: ({ activityNo, appSecret }) => ({
22
+ getRankingGames: ({ activityNo }) => ({
23
23
  url: 'hot-game/ranking',
24
24
  method: 'get',
25
- params: { activityNo, appSecret },
25
+ params: { activityNo },
26
26
  }),
27
27
  }
package/src/api/user.js CHANGED
@@ -21,33 +21,28 @@ export default {
21
21
  getFriendsList: ({ type, page, row }) => ({ url: 'friends/reward-list', method: 'post', params: { type, page, row } }),
22
22
  postFriends: ({ friendCode }) => ({ url: 'friends', method: 'post', params: { friendCode } }),
23
23
  passwordRecovery: (recoveryData) => ({ url: 'recovery', method: 'post', params: recoveryData, isPublic: true }),
24
- // passwordAbandon: ({ number }) => ({ url: 'recovery/abandon', method: 'post', params: { number }, isPublic: true }), 平台版和現金網未使用
25
- // passwordAcknowledge: (acknowledgeData) => ({ url: 'recovery/acknowledge', method: 'post', params: acknowledgeData, isPublic: true }), 平台版和現金網未使用
24
+ passwordAbandon: ({ number }) => ({ url: 'recovery/abandon', method: 'post', params: { number }, isPublic: true }),
25
+ passwordAcknowledge: (acknowledgeData) => ({ url: 'recovery/acknowledge', method: 'post', params: acknowledgeData, isPublic: true }),
26
26
  verify: () => ({ url: 'verify', method: 'post' }),
27
27
  acknowledge: ({ requestId, code }) => ({ url: 'acknowledge', method: 'post', params: { requestId, code } }),
28
- passwordV2RecoveryInit: ({ provider, username, countryCode, phone, email, appSecret }) => ({
28
+ passwordV2RecoveryInit: ({ provider, username, countryCode, phone, email }) => ({
29
29
  url: 'recovery/v2/initiate',
30
30
  method: 'post',
31
- params: { provider, username, countryCode, phone, email, appSecret },
31
+ params: { provider, username, countryCode, phone, email },
32
32
  isPublic: true,
33
33
  }),
34
- passwordV2Acknowledge: ({ requestId, target, code, appSecret }) => ({
34
+ passwordV2Acknowledge: ({ requestId, target, code }) => ({
35
35
  url: 'recovery/v2/acknowledge',
36
36
  method: 'post',
37
- params: { requestId, target, code, appSecret },
38
- isPublic: true,
39
- }),
40
- // passwordV2Abandon: ({ requestId, target }) => ({ url: 'recovery/v2/abandon', method: 'post', params: { requestId, target }, isPublic: true }), 平台版和現金網未使用
41
- passwordV2ResetOtp: ({ requestId, target, appSecret }) => ({
42
- url: 'recovery/v2/reset',
43
- method: 'post',
44
- params: { requestId, target, appSecret },
37
+ params: { requestId, target, code },
45
38
  isPublic: true,
46
39
  }),
47
- passwordV2Change: ({ requestId, target, newPassword, appSecret }) => ({
40
+ passwordV2Abandon: ({ requestId, target }) => ({ url: 'recovery/v2/abandon', method: 'post', params: { requestId, target }, isPublic: true }),
41
+ passwordV2ResetOtp: ({ requestId, target }) => ({ url: 'recovery/v2/reset', method: 'post', params: { requestId, target }, isPublic: true }),
42
+ passwordV2Change: ({ requestId, target, newPassword }) => ({
48
43
  url: 'recovery/v2/changePassword',
49
44
  method: 'post',
50
- params: { requestId, target, newPassword, appSecret },
45
+ params: { requestId, target, newPassword },
51
46
  isPublic: true,
52
47
  }),
53
48
  verifyV2Initiate: ({ strategy }) => ({