60p82u21t54k 1.1.48 → 1.2.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.
@@ -2503,7 +2503,7 @@ const getGetBankCardDataResponse = (raw) => {
2503
2503
  var _a2, _b2, _c2, _d2;
2504
2504
  return {
2505
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),
2506
+ name: (_c2 = (_b2 = raw.mdCryptoDetail) == null ? void 0 : _b2.cryptoNetworks[(_a2 = item.cn_id) != null ? _a2 : 0].name) != null ? _c2 : "",
2507
2507
  networkId: (_d2 = item.cn_id) != null ? _d2 : 0,
2508
2508
  address: item.address
2509
2509
  };
@@ -2528,12 +2528,6 @@ const getGetBankCardDataResponse = (raw) => {
2528
2528
  bankCardLimit: raw.bankcardlimit
2529
2529
  };
2530
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
- };
2537
2531
  const modifyGetBankCardDataRequest = (requests) => {
2538
2532
  return requests;
2539
2533
  };
@@ -4852,15 +4846,15 @@ const getGetCryptoListResponse = (raw) => {
4852
4846
  return {
4853
4847
  status: raw.status == 1,
4854
4848
  message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
4855
- coinList: (_b = raw.data.map((coin) => {
4849
+ networkList: (_b = raw.data.map((network) => {
4856
4850
  var _a2;
4857
4851
  return {
4858
- id: coin.coin_id,
4859
- name: coin.coin_name,
4860
- network: (_a2 = coin.network_support.map((network) => {
4852
+ id: network.network_id,
4853
+ name: network.network_name,
4854
+ coin: (_a2 = network.coin_support.map((coin) => {
4861
4855
  return {
4862
- id: network.network_id,
4863
- name: network.network_name
4856
+ id: coin.coin_id,
4857
+ name: coin.coin_name
4864
4858
  };
4865
4859
  })) != null ? _a2 : []
4866
4860
  };
@@ -5209,29 +5203,27 @@ const modifyGetWeekCardAllDataResponse = (result) => {
5209
5203
  const getSearchGameByNameResponse = (raw) => {
5210
5204
  var _a, _b, _c, _d, _e, _f, _g;
5211
5205
  return {
5212
- gameList: {
5213
- currentPage: (_b = (_a = raw.mdGameLists) == null ? void 0 : _a.current_page) != null ? _b : 1,
5214
- lastPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.last_page) != null ? _d : 1,
5215
- data: (_g = (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
5216
- return {
5217
- gameId: item.id,
5218
- platformId: item.id_PlatformProduct,
5219
- platformCode: item.code,
5220
- platformName: item.pp_name,
5221
- name: item.name,
5222
- flag: {
5223
- value: 0,
5224
- hot: false,
5225
- trial: false,
5226
- new: false
5227
- },
5228
- imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.filemtime)}`,
5229
- logoUrl: `/image/platform_logo/platform_logo_${item.code}.png?ts=${currentTS}`,
5230
- rate: "0.00",
5231
- jackpotAmount: ""
5232
- };
5233
- })) != null ? _g : []
5234
- }
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 : []
5235
5227
  };
5236
5228
  };
5237
5229
  const modifySearchGameByNameRequest = (requests) => {
@@ -5250,7 +5242,7 @@ const modifySearchGameByNameResponse = (result) => {
5250
5242
  const searchGameList = result.searchGameByName;
5251
5243
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
5252
5244
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
5253
- const tempSearchGameList = searchGameList.gameList.data.map((gameInfo) => {
5245
+ const tempSearchGameList = searchGameList.data.map((gameInfo) => {
5254
5246
  var _a;
5255
5247
  const turnover = getPlatformTurnoverRate.find(
5256
5248
  (item) => item.id === gameInfo.platformId