60p82u21t54k 1.1.47 → 1.2.0

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.
@@ -2500,20 +2500,21 @@ const getGetBankCardDataResponse = (raw) => {
2500
2500
  };
2501
2501
  })) != null ? _f : [],
2502
2502
  cryptoAccount: (_h = (_g = raw.mdAccountCrypto) == null ? void 0 : _g.map((item) => {
2503
+ var _a2, _b2, _c2, _d2;
2503
2504
  return {
2504
- id: item.crypto_id,
2505
- type: item.type,
2506
- name: item.crypto_name,
2505
+ id: item.id,
2506
+ name: getCryptoName((_b2 = (_a2 = raw.mdCryptoDetail) == null ? void 0 : _a2.cryptoNetworks) != null ? _b2 : [], (_c2 = item.cn_id) != null ? _c2 : 0),
2507
+ networkId: (_d2 = item.cn_id) != null ? _d2 : 0,
2507
2508
  address: item.address
2508
2509
  };
2509
2510
  })) != null ? _h : [],
2510
2511
  cryptoDetail: {
2511
2512
  limit: (_j = (_i = raw.mdCryptoDetail) == null ? void 0 : _i.cryptolimit) != null ? _j : 0,
2512
- protocol: (_m = (_l = (_k = raw.mdCryptoDetail) == null ? void 0 : _k.cryptoprotocol) == null ? void 0 : _l.map((item) => {
2513
+ network: (_m = (_l = (_k = raw.mdCryptoDetail) == null ? void 0 : _k.cryptoNetworks) == null ? void 0 : _l.map((item) => {
2513
2514
  return {
2514
2515
  id: item.id,
2515
- name: item.name,
2516
- status: item.status == "1"
2516
+ name: `${item.name} (${item.value.toUpperCase()})`,
2517
+ value: item.value
2517
2518
  };
2518
2519
  })) != null ? _m : []
2519
2520
  },
@@ -2527,6 +2528,12 @@ const getGetBankCardDataResponse = (raw) => {
2527
2528
  bankCardLimit: raw.bankcardlimit
2528
2529
  };
2529
2530
  };
2531
+ const getCryptoName = (networkList, networkId) => {
2532
+ if (!networkList) return "";
2533
+ const targetIndex = networkList.findIndex((network) => network.id == networkId);
2534
+ const target = networkList[targetIndex];
2535
+ return `${target.name} (${target.value.toUpperCase()})`;
2536
+ };
2530
2537
  const modifyGetBankCardDataRequest = (requests) => {
2531
2538
  return requests;
2532
2539
  };
@@ -4845,15 +4852,15 @@ const getGetCryptoListResponse = (raw) => {
4845
4852
  return {
4846
4853
  status: raw.status == 1,
4847
4854
  message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
4848
- coinList: (_b = raw.data.map((coin) => {
4855
+ networkList: (_b = raw.data.map((network) => {
4849
4856
  var _a2;
4850
4857
  return {
4851
- name: coin.coin,
4852
- protocol: (_a2 = coin.supported_protocols.map((protocol) => {
4858
+ id: network.network_id,
4859
+ name: network.network_name,
4860
+ coin: (_a2 = network.coin_support.map((coin) => {
4853
4861
  return {
4854
- name: protocol.protocol,
4855
- cryptoId: protocol.crypto_id,
4856
- networkId: protocol.network_id
4862
+ id: coin.coin_id,
4863
+ name: coin.coin_name
4857
4864
  };
4858
4865
  })) != null ? _a2 : []
4859
4866
  };
@@ -5202,29 +5209,27 @@ const modifyGetWeekCardAllDataResponse = (result) => {
5202
5209
  const getSearchGameByNameResponse = (raw) => {
5203
5210
  var _a, _b, _c, _d, _e, _f, _g;
5204
5211
  return {
5205
- gameList: {
5206
- currentPage: (_b = (_a = raw.mdGameLists) == null ? void 0 : _a.current_page) != null ? _b : 1,
5207
- lastPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.last_page) != null ? _d : 1,
5208
- data: (_g = (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
5209
- return {
5210
- gameId: item.id,
5211
- platformId: item.id_PlatformProduct,
5212
- platformCode: item.code,
5213
- platformName: item.pp_name,
5214
- name: item.name,
5215
- flag: {
5216
- value: 0,
5217
- hot: false,
5218
- trial: false,
5219
- new: false
5220
- },
5221
- imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.filemtime)}`,
5222
- logoUrl: `/image/platform_logo/platform_logo_${item.code}.png?ts=${currentTS}`,
5223
- rate: "0.00",
5224
- jackpotAmount: ""
5225
- };
5226
- })) != null ? _g : []
5227
- }
5212
+ currentPage: (_b = (_a = raw.mdGameLists) == null ? void 0 : _a.current_page) != null ? _b : 1,
5213
+ lastPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.last_page) != null ? _d : 1,
5214
+ data: (_g = (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
5215
+ return {
5216
+ gameId: item.id,
5217
+ platformId: item.id_PlatformProduct,
5218
+ platformCode: item.code,
5219
+ platformName: item.pp_name,
5220
+ name: item.name,
5221
+ flag: {
5222
+ value: 0,
5223
+ hot: false,
5224
+ trial: false,
5225
+ new: false
5226
+ },
5227
+ imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.filemtime)}`,
5228
+ logoUrl: `/image/platform_logo/platform_logo_${item.code}.png?ts=${currentTS}`,
5229
+ rate: "0.00",
5230
+ jackpotAmount: ""
5231
+ };
5232
+ })) != null ? _g : []
5228
5233
  };
5229
5234
  };
5230
5235
  const modifySearchGameByNameRequest = (requests) => {
@@ -5243,7 +5248,7 @@ const modifySearchGameByNameResponse = (result) => {
5243
5248
  const searchGameList = result.searchGameByName;
5244
5249
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
5245
5250
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
5246
- const tempSearchGameList = searchGameList.gameList.data.map((gameInfo) => {
5251
+ const tempSearchGameList = searchGameList.data.map((gameInfo) => {
5247
5252
  var _a;
5248
5253
  const turnover = getPlatformTurnoverRate.find(
5249
5254
  (item) => item.id === gameInfo.platformId