@jetthai/cuora 1.1.395-payment-1 → 1.1.395

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 (62) hide show
  1. package/CHANGELOG.md +91 -1
  2. package/package.json +1 -1
  3. package/resetGitBranch.sh +0 -10
  4. package/src/api/activity.js +6 -4
  5. package/src/api/auth.js +2 -2
  6. package/src/api/common.js +1 -1
  7. package/src/api/game.js +25 -13
  8. package/src/api/payment.js +9 -5
  9. package/src/api/ranking.js +6 -6
  10. package/src/api/user.js +15 -10
  11. package/src/lib/{fingerprint_v3_11_5.js → fingerprint_v3_11_12.js} +3749 -4212
  12. package/src/machine/activity/continue_deposit_activity.js +2 -1
  13. package/src/machine/activity/fafafa_activity.js +2 -1
  14. package/src/machine/activity/return_bonus_activity.js +2 -1
  15. package/src/machine/activity/sign_in_activity.js +2 -1
  16. package/src/machine/activity/specify_bets_activity.js +2 -1
  17. package/src/machine/activity/specify_turnover_activity.js +2 -1
  18. package/src/machine/auth.js +13 -7
  19. package/src/machine/bank_binding.js +68 -10
  20. package/src/machine/common.js +34 -8
  21. package/src/machine/deposit/amb.js +1 -1
  22. package/src/machine/deposit/crypto_bank.js +10 -2
  23. package/src/machine/deposit/crypto_bank_cash.js +10 -2
  24. package/src/machine/deposit/crypto_way.js +10 -2
  25. package/src/machine/deposit/crypto_way_cash.js +10 -2
  26. package/src/machine/deposit/deposit_fc.js +11 -3
  27. package/src/machine/deposit/direct.js +12 -4
  28. package/src/machine/deposit/direct_cash.js +12 -4
  29. package/src/machine/deposit/float.js +12 -4
  30. package/src/machine/deposit/loadcard_cash.js +11 -3
  31. package/src/machine/deposit/loadcard_vn.js +11 -3
  32. package/src/machine/deposit/manual_cash.js +12 -4
  33. package/src/machine/deposit/manual_vn.js +11 -3
  34. package/src/machine/deposit/qrcode_cash.js +11 -3
  35. package/src/machine/deposit/qrcode_v2.js +11 -3
  36. package/src/machine/deposit/virtual_bank_cash.js +11 -3
  37. package/src/machine/deposit/virtual_bank_vn.js +11 -3
  38. package/src/machine/deposit/vpay.js +12 -4
  39. package/src/machine/game_betslip.js +46 -0
  40. package/src/machine/game_replay.js +2 -2
  41. package/src/machine/game_search_cash.js +10 -7
  42. package/src/machine/game_search_v2.js +10 -10
  43. package/src/machine/game_v2_1.js +22 -9
  44. package/src/machine/honor_board_cash.js +1 -1
  45. package/src/machine/inbox.js +22 -8
  46. package/src/machine/index.js +2 -0
  47. package/src/machine/ranking.js +14 -11
  48. package/src/machine/reward.js +58 -5
  49. package/src/machine/reward_cash.js +60 -3
  50. package/src/machine/reward_fc.js +2 -1
  51. package/src/machine/side_cash.js +3 -2
  52. package/src/machine/side_v2.js +5 -4
  53. package/src/machine/user_reset_password.js +5 -4
  54. package/src/machine/user_sign_up.js +6 -2
  55. package/src/machine/vip_table.js +11 -4
  56. package/src/machine/withdraw/withdraw_crypto_cash.js +10 -2
  57. package/src/machine/withdraw/withdraw_manual.js +11 -96
  58. package/src/machine/withdraw/withdraw_manual_cash.js +1 -1
  59. package/src/request/request.js +245 -7
  60. package/src/util/deviceToken.js +26 -2
  61. package/src/util/index.js +2 -2
  62. package/src/util/storage.js +18 -4
package/CHANGELOG.md CHANGED
@@ -2,16 +2,106 @@
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.395-payment-1](https://github.com/jetthai/cuora-module/compare/v1.1.359...v1.1.395-payment-1) (2025-05-27)
5
+ ### [1.1.395](https://github.com/jetthai/cuora-module/compare/v1.1.394...v1.1.395) (2025-11-11)
6
+
7
+ ### [1.1.394](https://github.com/jetthai/cuora-module/compare/v1.1.393...v1.1.394) (2025-11-04)
8
+
9
+ ### [1.1.393](https://github.com/jetthai/cuora-module/compare/v1.1.392...v1.1.393) (2025-10-17)
10
+
11
+ ### [1.1.392](https://github.com/jetthai/cuora-module/compare/v1.1.391...v1.1.392) (2025-10-17)
12
+
13
+ ### [1.1.391](https://github.com/jetthai/cuora-module/compare/v1.1.390...v1.1.391) (2025-10-15)
14
+
15
+ ### [1.1.390](https://github.com/jetthai/cuora-module/compare/v1.1.389...v1.1.390) (2025-10-13)
16
+
17
+ ### [1.1.389](https://github.com/jetthai/cuora-module/compare/v1.1.388...v1.1.389) (2025-10-07)
18
+
19
+ ### [1.1.388](https://github.com/jetthai/cuora-module/compare/v1.1.387...v1.1.388) (2025-10-07)
20
+
21
+ ### [1.1.387](https://github.com/jetthai/cuora-module/compare/v1.1.386...v1.1.387) (2025-09-23)
22
+
23
+ ### [1.1.386](https://github.com/jetthai/cuora-module/compare/v1.1.385...v1.1.386) (2025-09-19)
24
+
25
+ ### [1.1.385](https://github.com/jetthai/cuora-module/compare/v1.1.384...v1.1.385) (2025-09-17)
26
+
27
+ ### [1.1.384](https://github.com/jetthai/cuora-module/compare/v1.1.383...v1.1.384) (2025-09-16)
28
+
29
+ ### [1.1.383](https://github.com/jetthai/cuora-module/compare/v1.1.382...v1.1.383) (2025-09-16)
30
+
31
+ ### [1.1.382](https://github.com/jetthai/cuora-module/compare/v1.1.381...v1.1.382) (2025-09-16)
32
+
33
+ ### [1.1.381](https://github.com/jetthai/cuora-module/compare/v1.1.380...v1.1.381) (2025-09-15)
34
+
35
+ ### [1.1.380](https://github.com/jetthai/cuora-module/compare/v1.1.379...v1.1.380) (2025-09-11)
36
+
37
+ ### [1.1.379](https://github.com/jetthai/cuora-module/compare/v1.1.378...v1.1.379) (2025-09-09)
38
+
39
+ ### [1.1.378](https://github.com/jetthai/cuora-module/compare/v1.1.377...v1.1.378) (2025-09-09)
40
+
41
+ ### [1.1.377](https://github.com/jetthai/cuora-module/compare/v1.1.376...v1.1.377) (2025-09-09)
42
+
43
+ ### [1.1.376](https://github.com/jetthai/cuora-module/compare/v1.1.375...v1.1.376) (2025-09-09)
44
+
45
+ ### [1.1.375](https://github.com/jetthai/cuora-module/compare/v1.1.374...v1.1.375) (2025-08-31)
46
+
47
+ ### [1.1.374](https://github.com/jetthai/cuora-module/compare/v1.1.373...v1.1.374) (2025-08-28)
48
+
49
+ ### [1.1.373](https://github.com/jetthai/cuora-module/compare/v1.1.372...v1.1.373) (2025-08-13)
50
+
51
+ ### [1.1.372](https://github.com/jetthai/cuora-module/compare/v1.1.371...v1.1.372) (2025-08-12)
52
+
53
+ ### [1.1.371](https://github.com/jetthai/cuora-module/compare/v1.1.370...v1.1.371) (2025-08-11)
54
+
55
+ ### [1.1.370](https://github.com/jetthai/cuora-module/compare/v1.1.369...v1.1.370) (2025-08-07)
56
+
57
+ ### [1.1.369](https://github.com/jetthai/cuora-module/compare/v1.1.368...v1.1.369) (2025-08-06)
58
+
59
+ ### [1.1.368](https://github.com/jetthai/cuora-module/compare/v1.1.367...v1.1.368) (2025-07-28)
60
+
61
+ ### [1.1.367](https://github.com/jetthai/cuora-module/compare/v1.1.366...v1.1.367) (2025-07-22)
62
+
63
+ ### [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)
64
+
65
+ ### [1.1.366-v2api-1](https://github.com/jetthai/cuora-module/compare/v1.1.366...v1.1.366-v2api-1) (2025-07-18)
66
+
67
+ ### [1.1.366](https://github.com/jetthai/cuora-module/compare/v1.1.365...v1.1.366) (2025-07-18)
68
+
69
+ ### [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)
70
+
71
+ ### [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)
72
+
73
+ ### [1.1.365-v2api-1](https://github.com/jetthai/cuora-module/compare/v1.1.365...v1.1.365-v2api-1) (2025-07-17)
74
+
75
+ ### [1.1.365](https://github.com/jetthai/cuora-module/compare/v1.1.364...v1.1.365) (2025-07-08)
76
+
77
+ ### [1.1.364](https://github.com/jetthai/cuora-module/compare/v1.1.363...v1.1.364) (2025-06-23)
78
+
79
+ ### [1.1.363](https://github.com/jetthai/cuora-module/compare/v1.1.362...v1.1.363) (2025-06-23)
80
+
81
+ ### [1.1.362](https://github.com/jetthai/cuora-module/compare/v1.1.361...v1.1.362) (2025-06-20)
82
+
83
+ ### [1.1.361-v2api-1](https://github.com/jetthai/cuora-module/compare/v1.1.361...v1.1.361-v2api-1) (2025-06-05)
84
+
85
+ ### [1.1.361](https://github.com/jetthai/cuora-module/compare/v1.1.360...v1.1.361) (2025-06-03)
86
+
87
+ ### [1.1.360](https://github.com/jetthai/cuora-module/compare/v1.1.359...v1.1.360) (2025-06-03)
88
+
89
+ ### [1.1.358-apiv2-2](https://github.com/jetthai/cuora-module/compare/v1.1.359...v1.1.358-apiv2-2) (2025-05-27)
6
90
 
7
91
  ### [1.1.359](https://github.com/jetthai/cuora-module/compare/v1.1.358...v1.1.359) (2025-05-23)
8
92
 
93
+ ### [1.1.358-apiv2-1](https://github.com/jetthai/cuora-module/compare/v1.1.358...v1.1.358-apiv2-1) (2025-05-09)
94
+
9
95
  ### [1.1.358](https://github.com/jetthai/cuora-module/compare/v1.1.357...v1.1.358) (2025-05-09)
10
96
 
11
97
  ### [1.1.357](https://github.com/jetthai/cuora-module/compare/v1.1.356...v1.1.357) (2025-05-06)
12
98
 
13
99
  ### [1.1.356](https://github.com/jetthai/cuora-module/compare/v1.1.355...v1.1.356) (2025-04-29)
14
100
 
101
+ ### [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)
102
+
103
+ ### [1.1.355-apiv2-1](https://github.com/jetthai/cuora-module/compare/v1.1.355...v1.1.355-apiv2-1) (2025-05-05)
104
+
15
105
  ### [1.1.355](https://github.com/jetthai/cuora-module/compare/v1.1.353-data-1...v1.1.355) (2025-04-22)
16
106
 
17
107
  ### [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.395-payment-1",
3
+ "version": "1.1.395",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
package/resetGitBranch.sh CHANGED
@@ -2,15 +2,6 @@
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
-
14
5
  # 切換到 master 分支
15
6
  git checkout master
16
7
  if [ $? -ne 0 ]; then
@@ -24,7 +15,6 @@ if [ $? -ne 0 ]; then
24
15
  echo "從 origin 拉取 master 分支失敗"
25
16
  exit 1
26
17
  fi
27
- wait_for_confirmation
28
18
 
29
19
  # 刪除本地的 dev 分支
30
20
  git branch -D dev
@@ -29,9 +29,10 @@ export default {
29
29
  method: 'get',
30
30
  params: { activityNo, appSecret },
31
31
  }),
32
- getActivityRanking: () => ({
32
+ getActivityRanking: ({ appSecret }) => ({
33
33
  url: 'activities/activity/ranking',
34
34
  method: 'get',
35
+ params: { appSecret },
35
36
  isPublic: true,
36
37
  }),
37
38
  getAchievements: ({ limit, page, appSecret }) => ({
@@ -69,10 +70,10 @@ export default {
69
70
  method: 'get',
70
71
  params: { rewardType },
71
72
  }),
72
- getRewardList: ({ rewardType, count, appSecret }) => ({
73
+ getRewardList: ({ rewardType, count, appSecret, orderColum, lang }) => ({
73
74
  url: 'activities/rewards',
74
75
  method: 'get',
75
- params: { rewardType, count, appSecret },
76
+ params: { rewardType, count, appSecret, orderColum, lang },
76
77
  }),
77
78
  getCashRainReward: ({ activityNo, appSecret }) => ({
78
79
  url: `activities/cashRain`,
@@ -83,7 +84,8 @@ export default {
83
84
  settleAmount: (data) => ({ url: 'activities/exchange/diamond/settle', method: 'post', params: data }),
84
85
  exchange: (data) => ({ url: 'activities/exchange', method: 'post', params: data }),
85
86
  collect: (data) => ({ url: 'activities/collect', method: 'post', params: data }),
86
- getVipTable: () => ({ url: 'activities/viptable', method: 'get' }),
87
+ getVipTable: ({ appSecret }) => ({ url: 'activities/viptable', method: 'get', params: { appSecret } }),
88
+ getLevelBonusInfo: () => ({ url: 'activities/level-bonus/info', method: 'get' }),
87
89
  getRankingList: () => ({ url: 'activities/ranking', method: 'get' }),
88
90
  exchangeDiamond: ({ activityNo, exchangeAward = [] }) => ({
89
91
  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 }) => ({
57
+ checkAccount: ({ account, nick_name, strategy, appSecret }) => ({
58
58
  url: 'checkAccount',
59
59
  method: 'post',
60
- params: { account, nick_name, strategy },
60
+ params: { account, nick_name, strategy, appSecret },
61
61
  isPublic: true,
62
62
  }),
63
63
  }
package/src/api/common.js CHANGED
@@ -2,7 +2,7 @@ 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', isPublic: true }),
5
+ broadcast: () => ({ url: 'broadcast', method: 'get', params: { appSecret }, 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 }),
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 }) => ({ url: 'game/search', method: 'get', params: { q, lang } }),
10
+ getGameTags: ({ q, lang, limit = 20 }) => ({ url: 'game/search', method: 'get', params: { q, lang, limit } }),
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 } = {}) => ({
60
+ getListRoot: ({ timestamp, appSecret } = {}) => ({
61
61
  url: 'game/list/v3/root',
62
62
  method: 'get',
63
- params: { timestamp },
63
+ params: { timestamp, appSecret },
64
64
  }),
65
- getListCategory: ({ categoryId, timestamp, index }) => ({
65
+ getListCategory: ({ categoryId, timestamp, index, appSecret }) => ({
66
66
  url: 'game/list/v3/category',
67
67
  method: 'get',
68
- params: { categoryId, timestamp, index },
68
+ params: { categoryId, timestamp, index, appSecret },
69
69
  }),
70
- getListAddition: ({ categoryId, timestamp, index }) => ({
70
+ getListAddition: ({ categoryId, timestamp, index, appSecret }) => ({
71
71
  url: 'game/list/v3/addition',
72
72
  method: 'get',
73
- params: { categoryId, timestamp, index },
73
+ params: { categoryId, timestamp, index, appSecret },
74
74
  }),
75
- getListCategoryByRange: ({ categoryId, timestamp, end }) => ({
75
+ getListCategoryByRange: ({ categoryId, timestamp, end, appSecret }) => ({
76
76
  url: 'game/list/v3/categoryByRange',
77
77
  method: 'get',
78
- params: { categoryId, timestamp, end },
78
+ params: { categoryId, timestamp, end, appSecret },
79
79
  }),
80
- getListAdditionByRange: ({ categoryId, timestamp, end }) => ({
80
+ getListAdditionByRange: ({ categoryId, timestamp, end, appSecret }) => ({
81
81
  url: 'game/list/v3/additionByRange',
82
82
  method: 'get',
83
- params: { categoryId, timestamp, end },
83
+ params: { categoryId, timestamp, end, appSecret },
84
84
  }),
85
85
  getListMyFavorite: ({ timestamp } = {}) => ({
86
86
  url: 'game/list/v3/myFavorite',
@@ -90,13 +90,25 @@ 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 }) => ({
93
+ getGameReplayInfo: ({ providerId, seqNo, lang, appSecret }) => ({
94
94
  method: 'get',
95
95
  url: 'game/gameReplay',
96
- params: { providerId, seqNo, lang },
96
+ params: { providerId, seqNo, lang, appSecret },
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
+ }),
102
114
  }
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  getPaymentHistory: (returnDays) => ({ url: 'payment/v2/history', method: 'post', params: { returnDays } }),
3
- getSpotMarket: () => ({ url: 'payment/spotmarket', method: 'get' }),
3
+ getSpotMarket: () => ({ url: 'payment/v2/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/getBindingPaymentInfo`, method: 'get' }),
11
+ getBindingPaymentInfo: () => ({ url: `payment/v2/getBindingPaymentInfo`, method: 'get' }),
12
12
  updatePaymentInfo: ({
13
13
  bankCode,
14
14
  branch,
@@ -19,6 +19,8 @@ export default {
19
19
  lastNameTh,
20
20
  firstNameEn,
21
21
  lastNameEn,
22
+ firstNameLocale,
23
+ lastNameLocale,
22
24
  bonus,
23
25
  paymentProvider,
24
26
  pixType,
@@ -41,6 +43,8 @@ export default {
41
43
  lastNameTh,
42
44
  firstNameEn,
43
45
  lastNameEn,
46
+ firstNameLocale,
47
+ lastNameLocale,
44
48
  bonus,
45
49
  paymentProvider,
46
50
  pixType,
@@ -54,7 +58,7 @@ export default {
54
58
  }),
55
59
  getBankList: (paymentMethod) => ({ url: `payment/v2/${paymentMethod}/getBankList`, method: 'get' }),
56
60
  getBindingBankList: ({ appSecret }) => ({ url: 'payment/v2/getBindingBankList', method: 'get', params: { appSecret }, isPublic: true }),
57
- getBindingPaymentList: ({ appSecret }) => ({ url: 'payment/getBindingPaymentList', method: 'get', params: { appSecret }, isPublic: true }),
61
+ getBindingPaymentList: ({ appSecret }) => ({ url: 'payment/v2/getBindingPaymentList', method: 'get', params: { appSecret }, isPublic: true }),
58
62
  getWithdrawBankList: () => ({ url: 'payment/v2/getWithdrawBankList', method: 'get' }),
59
63
  makeTransaction: ({ type, payload, paymentMethod }) => ({
60
64
  url: `payment/v2/${paymentMethod}/transaction`,
@@ -64,7 +68,7 @@ export default {
64
68
  ...payload,
65
69
  },
66
70
  }),
67
- checkTransaction: (paymentMethod) => ({ url: `payment/${paymentMethod}/checkTransaction`, method: 'post' }),
71
+ checkTransaction: (paymentMethod) => ({ url: `payment/v2/${paymentMethod}/checkTransaction`, method: 'post' }),
68
72
  setBonusSetting: ({ bonus }) => ({ url: 'payment/v2/setting', method: 'post', params: { bonus } }),
69
73
  getCurrentWithdrawRule: () => ({ url: 'payment/v2/getCurrentWithdrawRule', method: 'get' }),
70
74
  getDoubleWalletWithdrawRule: ({ walletType }) => ({
@@ -77,7 +81,7 @@ export default {
77
81
  method: 'post',
78
82
  params: { exchangeType, cryptoNetwork, targetAddress },
79
83
  }),
80
- mergeWallet: () => ({ url: 'payment/mergeWallet', method: 'post' }),
84
+ mergeWallet: () => ({ url: 'payment/v2/mergeWallet', method: 'post' }),
81
85
  getPaymentDetail: ({ transferType } = {}) => ({
82
86
  url: 'payment/v2/paymentDetail',
83
87
  method: 'post',
@@ -1,16 +1,16 @@
1
1
  export default {
2
2
  // 未登入排名資料
3
- getTournament: ({ activityNo, cycle, round, site }) => ({
3
+ getTournament: ({ activityNo, cycle, round, site, appSecret }) => ({
4
4
  url: 'tournament/detail',
5
5
  method: 'post',
6
- params: { activityNo, cycle, round, site },
6
+ params: { activityNo, cycle, round, site, appSecret },
7
7
  isPublic: true,
8
8
  }),
9
9
  // 登入後排名預設期數資料
10
- getRankingOptions: ({ activityNo }) => ({
10
+ getRankingOptions: ({ activityNo, appSecret }) => ({
11
11
  url: 'ranking/detail/option',
12
12
  method: 'get',
13
- params: { activityNo },
13
+ params: { activityNo, appSecret },
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 }) => ({
22
+ getRankingGames: ({ activityNo, appSecret }) => ({
23
23
  url: 'hot-game/ranking',
24
24
  method: 'get',
25
- params: { activityNo },
25
+ params: { activityNo, appSecret },
26
26
  }),
27
27
  }
package/src/api/user.js CHANGED
@@ -21,28 +21,33 @@ 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 }) => ({
28
+ passwordV2RecoveryInit: ({ provider, username, countryCode, phone, email, appSecret }) => ({
29
29
  url: 'recovery/v2/initiate',
30
30
  method: 'post',
31
- params: { provider, username, countryCode, phone, email },
31
+ params: { provider, username, countryCode, phone, email, appSecret },
32
32
  isPublic: true,
33
33
  }),
34
- passwordV2Acknowledge: ({ requestId, target, code }) => ({
34
+ passwordV2Acknowledge: ({ requestId, target, code, appSecret }) => ({
35
35
  url: 'recovery/v2/acknowledge',
36
36
  method: 'post',
37
- params: { requestId, target, code },
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 },
38
45
  isPublic: true,
39
46
  }),
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 }) => ({
47
+ passwordV2Change: ({ requestId, target, newPassword, appSecret }) => ({
43
48
  url: 'recovery/v2/changePassword',
44
49
  method: 'post',
45
- params: { requestId, target, newPassword },
50
+ params: { requestId, target, newPassword, appSecret },
46
51
  isPublic: true,
47
52
  }),
48
53
  verifyV2Initiate: ({ strategy }) => ({