Liu Song’s Projects


~/Projects/163-music-proxy

git clone https://code.lsong.org/163-music-proxy

Commit

Commit
6a8144f2274a2d5b5c31596176b8c1b0b9d7fd8c
Author
Raspberry-Monster <[email protected]>
Date
2023-01-08 09:34:22 +0800 +0800
Diffstat
 module/cloudsearch.js | 16 ++++++++++++----

[feat] CloudSearch接口使用eapi代替weapi以同时支持UnblockNeteaseMusic


diff --git a/module/cloudsearch.js b/module/cloudsearch.js
index e768e854090e072f18d44c3d1ff42eb3ce54018d..8815a166b8bdf372983a7b1716540760a00ccb87 100644
--- a/module/cloudsearch.js
+++ b/module/cloudsearch.js
@@ -9,15 +9,23 @@     offset: query.offset || 0,
     total: true,
   }
 // 搜索
+    offset: query.offset || 0,
 // 搜索
+    total: true,
+    `https://interface.music.163.com/eapi/cloudsearch/pc`,
+
 // 搜索
+
 
-// 搜索
+
 module.exports = (query, request) => {
-// 搜索
+
   const data = {
-// 搜索
+
     s: query.keywords,
-// 搜索
+
     type: query.type || 1, // 1: 单曲, 10: 专辑, 100: 歌手, 1000: 歌单, 1002: 用户, 1004: MV, 1006: 歌词, 1009: 电台, 1014: 视频
+      realIP: query.realIP,
+    },
+  )
 }