migu-api-enhanced 2.23.0 → 2.27.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.
- package/README.md +6 -6
- package/dist/index.cjs +351 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +120 -20
- package/dist/index.d.ts +120 -20
- package/dist/index.js +337 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __export(modules_exports, {
|
|
|
19
19
|
dislikeSong: () => dislikeSong,
|
|
20
20
|
editUserMyList: () => editUserMyList,
|
|
21
21
|
emojiAction: () => emojiAction,
|
|
22
|
+
getActivities: () => getActivities,
|
|
22
23
|
getAiBeanCount: () => getAiBeanCount,
|
|
23
24
|
getAiBeanSignStatus: () => getAiBeanSignStatus,
|
|
24
25
|
getAlbumInfo: () => getAlbumInfo,
|
|
@@ -33,6 +34,9 @@ __export(modules_exports, {
|
|
|
33
34
|
getConcertInfo: () => getConcertInfo,
|
|
34
35
|
getConcertRecommendMv: () => getConcertRecommendMv,
|
|
35
36
|
getConcertUrl: () => getConcertUrl,
|
|
37
|
+
getDAlbumInfo: () => getDAlbumInfo,
|
|
38
|
+
getDAlbumPay: () => getDAlbumPay,
|
|
39
|
+
getDAlbumSong: () => getDAlbumSong,
|
|
36
40
|
getDLUrlV1: () => getDLUrlV1,
|
|
37
41
|
getEmojiNum: () => getEmojiNum,
|
|
38
42
|
getFollowerList: () => getFollowerList,
|
|
@@ -59,7 +63,6 @@ __export(modules_exports, {
|
|
|
59
63
|
getPageTab: () => getPageTab,
|
|
60
64
|
getPlaylistInfo: () => getPlaylistInfo,
|
|
61
65
|
getPlaylistSong: () => getPlaylistSong,
|
|
62
|
-
getPlaylistSquarePage: () => getPlaylistSquarePage,
|
|
63
66
|
getRadioRecommend: () => getRadioRecommend,
|
|
64
67
|
getRadioRecommendAll: () => getRadioRecommendAll,
|
|
65
68
|
getRadioSong: () => getRadioSong,
|
|
@@ -86,6 +89,11 @@ __export(modules_exports, {
|
|
|
86
89
|
getSingerMv: () => getSingerMv,
|
|
87
90
|
getSingerSimilar: () => getSingerSimilar,
|
|
88
91
|
getSingerSong: () => getSingerSong,
|
|
92
|
+
getSongInfo: () => getSongInfo,
|
|
93
|
+
getSquareListByTag: () => getSquareListByTag,
|
|
94
|
+
getSquarePage: () => getSquarePage,
|
|
95
|
+
getSquareRecommend: () => getSquareRecommend,
|
|
96
|
+
getSquareTag: () => getSquareTag,
|
|
89
97
|
getThumbsMsg: () => getThumbsMsg,
|
|
90
98
|
getTicketInfo: () => getTicketInfo,
|
|
91
99
|
getTodayRecommend: () => getTodayRecommend,
|
|
@@ -100,6 +108,7 @@ __export(modules_exports, {
|
|
|
100
108
|
getUserHeartthrob: () => getUserHeartthrob,
|
|
101
109
|
getUserHomePage: () => getUserHomePage,
|
|
102
110
|
getUserMyList: () => getUserMyList,
|
|
111
|
+
getUserOrdered: () => getUserOrdered,
|
|
103
112
|
getUserPhoneInfo: () => getUserPhoneInfo,
|
|
104
113
|
getUserSongPage: () => getUserSongPage,
|
|
105
114
|
getVersion: () => getVersion,
|
|
@@ -124,6 +133,7 @@ __export(modules_exports, {
|
|
|
124
133
|
searchConcert: () => searchConcert,
|
|
125
134
|
searchLrc: () => searchLrc,
|
|
126
135
|
searchMv: () => searchMv,
|
|
136
|
+
searchPlaylist: () => searchPlaylist,
|
|
127
137
|
searchRbt: () => searchRbt,
|
|
128
138
|
searchSVideo: () => searchSVideo,
|
|
129
139
|
searchSinger: () => searchSinger,
|
|
@@ -231,6 +241,11 @@ var searchSong = async (text, page = 1) => {
|
|
|
231
241
|
return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/song/v1.0?pageNo=${page}&text=${text}`);
|
|
232
242
|
};
|
|
233
243
|
|
|
244
|
+
// src/modules/search_playlist.ts
|
|
245
|
+
var searchPlaylist = async (text, page = 1, typeOrder = 0) => {
|
|
246
|
+
return await h5fetch(`https://app.c.nf.migu.cn/bmw/search/music-list/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
|
|
247
|
+
};
|
|
248
|
+
|
|
234
249
|
// src/modules/search_album.ts
|
|
235
250
|
var searchAlbum = async (text, page = 1, typeOrder = 0) => {
|
|
236
251
|
return await h5fetch(`http://app.c.nf.migu.cn/bmw/search/album/v1.0?pageNo=${page}&text=${text}&typeOrder=${typeOrder}`);
|
|
@@ -317,8 +332,10 @@ var getSingerSong = async (singerId, page = 1) => {
|
|
|
317
332
|
};
|
|
318
333
|
|
|
319
334
|
// src/modules/singer_album.ts
|
|
320
|
-
var getSingerAlbum = async (singerId) => {
|
|
321
|
-
|
|
335
|
+
var getSingerAlbum = async (singerId, page = 1) => {
|
|
336
|
+
const res = await h5fetch(`http://app.c.nf.migu.cn/bmw/singer/album/v1.0?singerId=${singerId}&pageNo=${page}`);
|
|
337
|
+
res?.data?.header?.nextPageUrl ? res.data.header.hasNext = true : res.data.header.hasNext = false;
|
|
338
|
+
return res;
|
|
322
339
|
};
|
|
323
340
|
|
|
324
341
|
// src/modules/rank_index.ts
|
|
@@ -1254,7 +1271,7 @@ var getMVRecommend = async (mvContentId, page = 1) => {
|
|
|
1254
1271
|
};
|
|
1255
1272
|
|
|
1256
1273
|
// src/modules/playlist_square_page.ts
|
|
1257
|
-
var
|
|
1274
|
+
var getSquarePage = async () => {
|
|
1258
1275
|
return await h5fetch(`https://app.c.nf.migu.cn/pc/bmw/page-data/playlist-square-recommend/v1.0?templateVersion=2`);
|
|
1259
1276
|
};
|
|
1260
1277
|
|
|
@@ -1351,31 +1368,236 @@ var getVrbtUrl = async (contentIds) => {
|
|
|
1351
1368
|
|
|
1352
1369
|
// src/modules/lyric.ts
|
|
1353
1370
|
import axios8 from "axios";
|
|
1354
|
-
|
|
1371
|
+
|
|
1372
|
+
// src/utils/decryptMrc.ts
|
|
1373
|
+
var DELTA = 2654435769n;
|
|
1374
|
+
var MIN_LENGTH = 32;
|
|
1375
|
+
var SPECIAL_CHAR = 48;
|
|
1376
|
+
function toLong(num) {
|
|
1377
|
+
const MAX = 9223372036854775807n;
|
|
1378
|
+
const MIN = -9223372036854775808n;
|
|
1379
|
+
if (num > MAX) return toLong(num - (1n << 64n));
|
|
1380
|
+
if (num < MIN) return toLong(num + (1n << 64n));
|
|
1381
|
+
return num;
|
|
1382
|
+
}
|
|
1383
|
+
function ToByteArray(data) {
|
|
1384
|
+
const arrayList = [];
|
|
1385
|
+
for (const j2 of data) {
|
|
1386
|
+
const bArrLong2bytes = long2bytes(j2);
|
|
1387
|
+
for (let i = 0; i < 8; i++) {
|
|
1388
|
+
arrayList.push(bArrLong2bytes[i]);
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
while (arrayList[arrayList.length - 1] === SPECIAL_CHAR) {
|
|
1392
|
+
arrayList.pop();
|
|
1393
|
+
}
|
|
1394
|
+
return Buffer.from(arrayList);
|
|
1395
|
+
}
|
|
1396
|
+
function long2bytes(num) {
|
|
1397
|
+
const byteBufferOrder = Buffer.alloc(8);
|
|
1398
|
+
byteBufferOrder.writeBigInt64LE(num, 0);
|
|
1399
|
+
return byteBufferOrder;
|
|
1400
|
+
}
|
|
1401
|
+
function PadRight(source, length) {
|
|
1402
|
+
let result = source;
|
|
1403
|
+
while (result.length < length) {
|
|
1404
|
+
result += "0";
|
|
1405
|
+
}
|
|
1406
|
+
return result;
|
|
1407
|
+
}
|
|
1408
|
+
function ToLongArray(data) {
|
|
1409
|
+
const length = Math.floor(data.length / 16);
|
|
1410
|
+
const jArr = new Array(length);
|
|
1411
|
+
for (let i = 0; i < length; i++) {
|
|
1412
|
+
jArr[i] = toLong(BigInt("0x" + data.substring(i * 16, i * 16 + 16)));
|
|
1413
|
+
}
|
|
1414
|
+
return jArr;
|
|
1415
|
+
}
|
|
1416
|
+
function bytes2long(buf, index) {
|
|
1417
|
+
return buf.readBigInt64LE(index);
|
|
1418
|
+
}
|
|
1419
|
+
function ToLongArray2(data_) {
|
|
1420
|
+
const bArr = Buffer.alloc(data_.length * 2);
|
|
1421
|
+
for (let i = 0; i < data_.length; i++) {
|
|
1422
|
+
bArr[i * 2] = data_[i];
|
|
1423
|
+
bArr[i * 2 + 1] = 0;
|
|
1424
|
+
}
|
|
1425
|
+
const length = (bArr.length % 8 === 0 ? 0 : 1) + Math.floor(bArr.length / 8);
|
|
1426
|
+
const jArr = new Array(length);
|
|
1427
|
+
for (let i2 = 0; i2 < length - 1; i2++) {
|
|
1428
|
+
jArr[i2] = bytes2long(bArr, i2 * 8);
|
|
1429
|
+
}
|
|
1430
|
+
const bArr2 = Buffer.alloc(8);
|
|
1431
|
+
let i3 = 0;
|
|
1432
|
+
for (let i4 = (length - 1) * 8; i4 < bArr.length; i4++) {
|
|
1433
|
+
bArr2[i3] = bArr[i4];
|
|
1434
|
+
i3++;
|
|
1435
|
+
}
|
|
1436
|
+
jArr[length - 1] = bytes2long(bArr2, 0);
|
|
1437
|
+
return jArr;
|
|
1438
|
+
}
|
|
1439
|
+
function TEADecrypt(data, key) {
|
|
1440
|
+
const length = data.length;
|
|
1441
|
+
if (length >= 1) {
|
|
1442
|
+
let j3 = data[0];
|
|
1443
|
+
let j4 = toLong(
|
|
1444
|
+
(6n + BigInt(Math.floor(52 / length))) * DELTA
|
|
1445
|
+
);
|
|
1446
|
+
while (true) {
|
|
1447
|
+
const j5 = j4;
|
|
1448
|
+
if (j5 === 0n) {
|
|
1449
|
+
break;
|
|
1450
|
+
}
|
|
1451
|
+
const j6 = toLong(3n & j5 >> 2n);
|
|
1452
|
+
let j7 = length;
|
|
1453
|
+
while (true) {
|
|
1454
|
+
j7--;
|
|
1455
|
+
if (j7 > 0) {
|
|
1456
|
+
const j8 = data[j7 - 1];
|
|
1457
|
+
const i = j7;
|
|
1458
|
+
j3 = toLong(
|
|
1459
|
+
data[i] - toLong(
|
|
1460
|
+
toLong(
|
|
1461
|
+
toLong(j3 ^ j5) + toLong(j8 ^ key[Number(toLong(3n & BigInt(j7) ^ j6))])
|
|
1462
|
+
) ^ toLong(
|
|
1463
|
+
toLong(
|
|
1464
|
+
toLong(j8 >> 5n) ^ toLong(j3 << 2n)
|
|
1465
|
+
) + toLong(
|
|
1466
|
+
toLong(j3 >> 3n) ^ toLong(j8 << 4n)
|
|
1467
|
+
)
|
|
1468
|
+
)
|
|
1469
|
+
)
|
|
1470
|
+
);
|
|
1471
|
+
data[i] = j3;
|
|
1472
|
+
} else {
|
|
1473
|
+
break;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
const j9 = data[length - 1];
|
|
1477
|
+
j3 = toLong(
|
|
1478
|
+
data[0] - toLong(
|
|
1479
|
+
toLong(
|
|
1480
|
+
toLong(key[Number(toLong(BigInt(j7) & 3n ^ j6))] ^ j9) + toLong(j3 ^ j5)
|
|
1481
|
+
) ^ toLong(
|
|
1482
|
+
toLong(
|
|
1483
|
+
toLong(j9 >> 5n) ^ toLong(j3 << 2n)
|
|
1484
|
+
) + toLong(
|
|
1485
|
+
toLong(j3 >> 3n) ^ toLong(j9 << 4n)
|
|
1486
|
+
)
|
|
1487
|
+
)
|
|
1488
|
+
)
|
|
1489
|
+
);
|
|
1490
|
+
data[0] = j3;
|
|
1491
|
+
j4 = toLong(j5 - DELTA);
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
return data;
|
|
1495
|
+
}
|
|
1496
|
+
function decryptMrc(data) {
|
|
1497
|
+
if (data == null || data.length < MIN_LENGTH) return data;
|
|
1498
|
+
const decrypted = TEADecrypt(
|
|
1499
|
+
ToLongArray(data),
|
|
1500
|
+
ToLongArray2(Buffer.from(PadRight("karakal@123Qcomyidongtiantianhaoting", MIN_LENGTH), "utf8"))
|
|
1501
|
+
);
|
|
1502
|
+
return ToByteArray(decrypted).toString("utf16le");
|
|
1503
|
+
}
|
|
1504
|
+
function toWordTime(times) {
|
|
1505
|
+
const type = times.startsWith("(") ? 1 : times.startsWith("[") ? 2 : 0;
|
|
1506
|
+
times = times.replace(/[()\[\]]/g, "").trim();
|
|
1507
|
+
const time = Number(times.split(",")[0]);
|
|
1508
|
+
const mm = Math.floor(time / 6e4).toString().padStart(2, "0");
|
|
1509
|
+
const ss = Math.floor(time / 1e3 % 60).toString().padStart(2, "0");
|
|
1510
|
+
const ms = Math.floor(time % 1e3).toString().padStart(3, "0");
|
|
1511
|
+
if (type === 1) {
|
|
1512
|
+
return `[${mm}:${ss}.${ms}]`;
|
|
1513
|
+
} else {
|
|
1514
|
+
return times;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
function formatMrc(data) {
|
|
1518
|
+
const line = data.split("\n");
|
|
1519
|
+
const formattedData = line.reduce((prev, cur, index) => {
|
|
1520
|
+
cur = cur.trim();
|
|
1521
|
+
if (cur === "") return prev;
|
|
1522
|
+
if (!"1234567890".split("").includes(String(cur[1]))) {
|
|
1523
|
+
prev.push(cur);
|
|
1524
|
+
return prev;
|
|
1525
|
+
}
|
|
1526
|
+
cur = cur.replace(/\[[^\]]*\]/g, "");
|
|
1527
|
+
let nextIndex = 0, partStart = 0;
|
|
1528
|
+
let lineStr = "";
|
|
1529
|
+
while (true) {
|
|
1530
|
+
if (nextIndex === -1) break;
|
|
1531
|
+
const leftPos = cur.indexOf("(", nextIndex);
|
|
1532
|
+
if (leftPos === -1) break;
|
|
1533
|
+
const rightPos = cur.indexOf(")", leftPos);
|
|
1534
|
+
if (rightPos === -1) break;
|
|
1535
|
+
const time = cur.substring(leftPos, rightPos + 1);
|
|
1536
|
+
const word = cur.substring(partStart, leftPos);
|
|
1537
|
+
if (!!word && !!time) {
|
|
1538
|
+
partStart = rightPos + 1;
|
|
1539
|
+
nextIndex = rightPos + 1;
|
|
1540
|
+
} else {
|
|
1541
|
+
break;
|
|
1542
|
+
}
|
|
1543
|
+
lineStr += `${toWordTime(time)}${word}`;
|
|
1544
|
+
}
|
|
1545
|
+
prev.push(lineStr + "\n");
|
|
1546
|
+
return prev;
|
|
1547
|
+
}, []);
|
|
1548
|
+
return formattedData.join("");
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
// src/modules/lyric.ts
|
|
1552
|
+
var getLyric = async (contentId, type = "lrc") => {
|
|
1355
1553
|
if (contentId === "") return { error: "contentId is empty!", success: false };
|
|
1356
|
-
const
|
|
1554
|
+
const types = type.split(",");
|
|
1555
|
+
if (types.length === 0) return { error: "types is empty!", success: false };
|
|
1556
|
+
const res = await axios8.get(`https://app.u.nf.migu.cn/MIGUM2.0/v1.0/content/resourceinfo.do?resourceId=${contentId}&resourceType=2`);
|
|
1357
1557
|
const code = res.data.code.toString() || "";
|
|
1358
|
-
const data = res.data.
|
|
1558
|
+
const data = res.data.resource[0] || {};
|
|
1359
1559
|
if (code !== "000000") return {
|
|
1360
1560
|
success: false,
|
|
1361
1561
|
status: res.status,
|
|
1362
1562
|
error: res.data.info || res.data
|
|
1363
1563
|
};
|
|
1364
1564
|
if (data.length === 0) return { error: "data.length = 0 !", success: false, data };
|
|
1365
|
-
|
|
1366
|
-
if (
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1565
|
+
let lrc, lrcUrl, mrc, mrcUrl, trc, trcUrl;
|
|
1566
|
+
if (types.includes("lrc")) {
|
|
1567
|
+
lrcUrl = data.lrcUrl || "";
|
|
1568
|
+
if (lrcUrl !== "") {
|
|
1569
|
+
const lrcRes = await axios8.get(lrcUrl);
|
|
1570
|
+
if (lrcRes.status === 200) {
|
|
1571
|
+
lrc = lrcRes.data || "";
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
if (types.includes("trc")) {
|
|
1576
|
+
trcUrl = data.trcUrl || "";
|
|
1577
|
+
if (trcUrl !== "") {
|
|
1578
|
+
const trcRes = await axios8.get(trcUrl);
|
|
1579
|
+
if (trcRes.status === 200) {
|
|
1580
|
+
trc = trcRes.data || "";
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
if (types.includes("mrc")) {
|
|
1585
|
+
mrcUrl = data.mrcUrl || "";
|
|
1586
|
+
if (mrcUrl !== "") {
|
|
1587
|
+
const mrcRes = await axios8.get(mrcUrl);
|
|
1588
|
+
if (mrcRes.status === 200) {
|
|
1589
|
+
mrc = formatMrc(decryptMrc(mrcRes.data || ""));
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1375
1593
|
return {
|
|
1376
1594
|
success: true,
|
|
1377
1595
|
lrc,
|
|
1378
|
-
lrcUrl
|
|
1596
|
+
lrcUrl,
|
|
1597
|
+
mrc,
|
|
1598
|
+
mrcUrl,
|
|
1599
|
+
trc,
|
|
1600
|
+
trcUrl
|
|
1379
1601
|
};
|
|
1380
1602
|
};
|
|
1381
1603
|
|
|
@@ -1861,7 +2083,7 @@ var shareCommon = async (resourceType, contentId, contentName, targetUserName, c
|
|
|
1861
2083
|
contentName,
|
|
1862
2084
|
targetUserName,
|
|
1863
2085
|
copyrightId: copyrightId || void 0,
|
|
1864
|
-
specialType:
|
|
2086
|
+
specialType: ["2003", "5"].includes(resourceType) ? "2" : void 0
|
|
1865
2087
|
} }
|
|
1866
2088
|
);
|
|
1867
2089
|
};
|
|
@@ -2201,18 +2423,98 @@ var getListenFreelySongs = async (pacmtoken, modelId = "701000") => {
|
|
|
2201
2423
|
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
2202
2424
|
};
|
|
2203
2425
|
|
|
2426
|
+
// src/modules/playlist_square_listByTag.ts
|
|
2427
|
+
var getSquareListByTag = async (tagId, page) => {
|
|
2428
|
+
const res = await h5fetch(`http://app.c.nf.migu.cn/MIGUM3.0/v1.0/template/musiclistplaza-listbytag?templateVersion=1&tagId=${tagId}&pageNumber=${page}`);
|
|
2429
|
+
res.data.contentItemList = res?.data?.contentItemList?.itemList?.reduce((acc, item) => {
|
|
2430
|
+
if (!item.actionUrl || !item.actionUrl.includes("song-list-info")) {
|
|
2431
|
+
return acc;
|
|
2432
|
+
}
|
|
2433
|
+
item.playlistId = item.actionUrl.split("id=")[1].split("&")[0] || "";
|
|
2434
|
+
acc.push(item);
|
|
2435
|
+
return acc;
|
|
2436
|
+
}, []) || [];
|
|
2437
|
+
res.data.hasNext = res.data.contentItemList.length < 30 ? false : res?.data?.nextPageUrl !== void 0 && res?.data?.nextPageUrl !== "";
|
|
2438
|
+
return res;
|
|
2439
|
+
};
|
|
2440
|
+
|
|
2441
|
+
// src/modules/playlist_square_recommend.ts
|
|
2442
|
+
var getSquareRecommend = async () => {
|
|
2443
|
+
return await h5fetch(`https://app.c.nf.migu.cn/pc/bmw/playlist-square/recommend-playlist/v1.0?templateVersion=2`);
|
|
2444
|
+
};
|
|
2445
|
+
|
|
2446
|
+
// src/modules/playlist_square_tag.ts
|
|
2447
|
+
var getSquareTag = async (needMoreTag = true) => {
|
|
2448
|
+
const baseTag = await h5fetch(`https://app.c.nf.migu.cn/pc/bmw/playlist-square/tab/v1.0`);
|
|
2449
|
+
if (!needMoreTag) {
|
|
2450
|
+
return baseTag;
|
|
2451
|
+
}
|
|
2452
|
+
const moreTag = await h5fetch(`https://app.c.nf.migu.cn/pc/v1.0/template/musiclistplaza-taglist/release`);
|
|
2453
|
+
baseTag.data.moreTag = moreTag.data.map((item) => {
|
|
2454
|
+
const title = item?.header?.title;
|
|
2455
|
+
const tagList = item?.content.map((it) => ({
|
|
2456
|
+
tagName: it.texts[0],
|
|
2457
|
+
tagId: it.texts[1]
|
|
2458
|
+
}));
|
|
2459
|
+
return { title, tagList };
|
|
2460
|
+
});
|
|
2461
|
+
return baseTag;
|
|
2462
|
+
};
|
|
2463
|
+
|
|
2464
|
+
// src/modules/resourceinfo_song.ts
|
|
2465
|
+
var getSongInfo = async (contentIds) => {
|
|
2466
|
+
contentIds = contentIds.replace(/,/g, "|");
|
|
2467
|
+
return await h5fetch(`https://app.c.nf.migu.cn/resource/song/by-contentids/v2.0?contentId=${contentIds}`);
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2470
|
+
// src/modules/activities.ts
|
|
2471
|
+
var getActivities = async () => {
|
|
2472
|
+
return await h5fetch(`https://app.u.nf.migu.cn/MIGUM3.0/v1.0/template/index-activity/release`);
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2475
|
+
// src/modules/user_ordered.ts
|
|
2476
|
+
var getUserOrdered = async (pacmtoken) => {
|
|
2477
|
+
if (!pacmtoken) return { data: { success: false, code: "290001", info: "\u8BF7\u5148\u767B\u5F55" }, newPacmToken: void 0 };
|
|
2478
|
+
const { data, cookies } = await ckfetch("https://app.c.nf.migu.cn/MIGUM3.0/strategy/song-ordered/v2.0", {
|
|
2479
|
+
cookie: { pacmtoken },
|
|
2480
|
+
headers: { "channel": "014X031" }
|
|
2481
|
+
});
|
|
2482
|
+
return { data, newPacmToken: cookies.pacmtoken || "" };
|
|
2483
|
+
};
|
|
2484
|
+
|
|
2485
|
+
// src/modules/dalbum_info.ts
|
|
2486
|
+
var getDAlbumInfo = async (dAlbumId) => {
|
|
2487
|
+
return await h5fetch(`https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/v2.0?dAlbumId=${dAlbumId}`);
|
|
2488
|
+
};
|
|
2489
|
+
|
|
2490
|
+
// src/modules/dalbum_song.ts
|
|
2491
|
+
var getDAlbumSong = async (dAlbumId) => {
|
|
2492
|
+
return await h5fetch(`https://app.c.nf.migu.cn/MIGUM3.0/resource/dalbum/song/v2.0?dAlbumId=${dAlbumId}`);
|
|
2493
|
+
};
|
|
2494
|
+
|
|
2495
|
+
// src/modules/dalbum_pay.ts
|
|
2496
|
+
var getDAlbumPay = async (dAlbumId) => {
|
|
2497
|
+
return await h5fetch(
|
|
2498
|
+
`https://app.c.nf.migu.cn/MIGUM3.0/strategy/album-sub-rank/v1.0?queryType=01&resourceId=${dAlbumId}`,
|
|
2499
|
+
{ headers: { "channel": "0146891" } }
|
|
2500
|
+
);
|
|
2501
|
+
};
|
|
2502
|
+
|
|
2204
2503
|
// src/utils/index.ts
|
|
2205
2504
|
var utils_exports = {};
|
|
2206
2505
|
__export(utils_exports, {
|
|
2207
2506
|
RSAKey: () => RSAKey,
|
|
2208
2507
|
URLParams: () => URLParams,
|
|
2209
2508
|
changeQuality: () => changeQuality,
|
|
2509
|
+
decryptMrc: () => decryptMrc,
|
|
2510
|
+
formatMrc: () => formatMrc,
|
|
2210
2511
|
getDeviceId: () => getDeviceId,
|
|
2211
2512
|
getPublicKey: () => getPublicKey,
|
|
2212
2513
|
getQuality: () => getQuality,
|
|
2213
2514
|
getResourceId: () => getResourceId,
|
|
2214
2515
|
isQuality: () => isQuality,
|
|
2215
2516
|
qualityList: () => qualityList,
|
|
2517
|
+
toWordTime: () => toWordTime,
|
|
2216
2518
|
toneFormat: () => toneFormat,
|
|
2217
2519
|
toneUrl: () => toneUrl
|
|
2218
2520
|
});
|
|
@@ -2238,6 +2540,8 @@ var getResourceId = (name) => {
|
|
|
2238
2540
|
return "6000";
|
|
2239
2541
|
case "mv":
|
|
2240
2542
|
return "D";
|
|
2543
|
+
case "dalbum":
|
|
2544
|
+
return "5";
|
|
2241
2545
|
case "vrbt":
|
|
2242
2546
|
return "M";
|
|
2243
2547
|
default:
|
|
@@ -2262,11 +2566,14 @@ export {
|
|
|
2262
2566
|
checkCanListen,
|
|
2263
2567
|
checkToken,
|
|
2264
2568
|
createClient,
|
|
2569
|
+
decryptMrc,
|
|
2265
2570
|
deleteCloudMusic,
|
|
2266
2571
|
deleteComment,
|
|
2267
2572
|
dislikeSong,
|
|
2268
2573
|
editUserMyList,
|
|
2269
2574
|
emojiAction,
|
|
2575
|
+
formatMrc,
|
|
2576
|
+
getActivities,
|
|
2270
2577
|
getAiBeanCount,
|
|
2271
2578
|
getAiBeanSignStatus,
|
|
2272
2579
|
getAlbumInfo,
|
|
@@ -2281,6 +2588,9 @@ export {
|
|
|
2281
2588
|
getConcertInfo,
|
|
2282
2589
|
getConcertRecommendMv,
|
|
2283
2590
|
getConcertUrl,
|
|
2591
|
+
getDAlbumInfo,
|
|
2592
|
+
getDAlbumPay,
|
|
2593
|
+
getDAlbumSong,
|
|
2284
2594
|
getDLUrlV1,
|
|
2285
2595
|
getDeviceId,
|
|
2286
2596
|
getEmojiNum,
|
|
@@ -2308,7 +2618,6 @@ export {
|
|
|
2308
2618
|
getPageTab,
|
|
2309
2619
|
getPlaylistInfo,
|
|
2310
2620
|
getPlaylistSong,
|
|
2311
|
-
getPlaylistSquarePage,
|
|
2312
2621
|
getPublicKey,
|
|
2313
2622
|
getQuality,
|
|
2314
2623
|
getRadioRecommend,
|
|
@@ -2338,6 +2647,11 @@ export {
|
|
|
2338
2647
|
getSingerMv,
|
|
2339
2648
|
getSingerSimilar,
|
|
2340
2649
|
getSingerSong,
|
|
2650
|
+
getSongInfo,
|
|
2651
|
+
getSquareListByTag,
|
|
2652
|
+
getSquarePage,
|
|
2653
|
+
getSquareRecommend,
|
|
2654
|
+
getSquareTag,
|
|
2341
2655
|
getThumbsMsg,
|
|
2342
2656
|
getTicketInfo,
|
|
2343
2657
|
getTodayRecommend,
|
|
@@ -2352,6 +2666,7 @@ export {
|
|
|
2352
2666
|
getUserHeartthrob,
|
|
2353
2667
|
getUserHomePage,
|
|
2354
2668
|
getUserMyList,
|
|
2669
|
+
getUserOrdered,
|
|
2355
2670
|
getUserPhoneInfo,
|
|
2356
2671
|
getUserSongPage,
|
|
2357
2672
|
getVersion,
|
|
@@ -2379,6 +2694,7 @@ export {
|
|
|
2379
2694
|
searchConcert,
|
|
2380
2695
|
searchLrc,
|
|
2381
2696
|
searchMv,
|
|
2697
|
+
searchPlaylist,
|
|
2382
2698
|
searchRbt,
|
|
2383
2699
|
searchSVideo,
|
|
2384
2700
|
searchSinger,
|
|
@@ -2389,6 +2705,7 @@ export {
|
|
|
2389
2705
|
shareVideo,
|
|
2390
2706
|
signAiBean,
|
|
2391
2707
|
signNinan,
|
|
2708
|
+
toWordTime,
|
|
2392
2709
|
toneFormat,
|
|
2393
2710
|
toneUrl
|
|
2394
2711
|
};
|