60p82u21t54k 1.1.42 → 1.1.44

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.
@@ -2497,20 +2497,21 @@ const getGetBankCardDataResponse = (raw) => {
2497
2497
  };
2498
2498
  })) != null ? _f : [],
2499
2499
  cryptoAccount: (_h = (_g = raw.mdAccountCrypto) == null ? void 0 : _g.map((item) => {
2500
+ var _a2, _b2;
2500
2501
  return {
2501
- id: item.crypto_id,
2502
- type: item.type,
2503
- name: item.crypto_name,
2502
+ id: item.id,
2503
+ name: getCryptoName(raw.mdCryptoDetail.cryptoNetworks, (_a2 = item.cn_id) != null ? _a2 : 0),
2504
+ networkId: (_b2 = item.cn_id) != null ? _b2 : 0,
2504
2505
  address: item.address
2505
2506
  };
2506
2507
  })) != null ? _h : [],
2507
2508
  cryptoDetail: {
2508
2509
  limit: raw.mdCryptoDetail.cryptolimit,
2509
- protocol: (_j = (_i = raw.mdCryptoDetail.cryptoprotocol) == null ? void 0 : _i.map((item) => {
2510
+ network: (_j = (_i = raw.mdCryptoDetail.cryptoNetworks) == null ? void 0 : _i.map((item) => {
2510
2511
  return {
2511
2512
  id: item.id,
2512
- name: item.name,
2513
- status: item.status == "1"
2513
+ name: `${item.name} (${item.value.toUpperCase()})`,
2514
+ value: item.value
2514
2515
  };
2515
2516
  })) != null ? _j : []
2516
2517
  },
@@ -2524,6 +2525,12 @@ const getGetBankCardDataResponse = (raw) => {
2524
2525
  bankCardLimit: raw.bankcardlimit
2525
2526
  };
2526
2527
  };
2528
+ const getCryptoName = (networkList, networkId) => {
2529
+ if (!networkList) return "";
2530
+ const targetIndex = networkList.findIndex((network) => network.id == networkId);
2531
+ const target = networkList[targetIndex];
2532
+ return `${target.name} (${target.value.toUpperCase()})`;
2533
+ };
2527
2534
  const modifyGetBankCardDataRequest = (requests) => {
2528
2535
  return requests;
2529
2536
  };