60p82u21t54k 1.1.42 → 1.1.43

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