Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Vanishing597
NeteaseCloudMusicApi
提交
69162ac6
N
NeteaseCloudMusicApi
项目概览
Vanishing597
/
NeteaseCloudMusicApi
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NeteaseCloudMusicApi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
69162ac6
编写于
5月 10, 2018
作者:
L
LightStrawberry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
user_update and playlist_update
上级
a41cb262
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
70 addition
and
3 deletion
+70
-3
app.js
app.js
+4
-3
router/playlist_update.js
router/playlist_update.js
+33
-0
router/user_update.js
router/user_update.js
+33
-0
未找到文件。
app.js
浏览文件 @
69162ac6
...
...
@@ -185,9 +185,6 @@ app.use("/search/multimatch", require("./router/search_multimatch"));
// 搜索 suggest,搜索结果包含单曲,歌手,歌单,mv信息
app
.
use
(
"
/search/suggest
"
,
require
(
"
./router/search_suggest
"
));
//simi ,相似歌单
app
.
use
(
"
/simi/playlist
"
,
require
(
"
./router/simi_playlist
"
));
...
...
@@ -259,6 +256,8 @@ app.use("/user/subcount", require("./router/user_subcount"));
app
.
use
(
"
/user/record
"
,
require
(
"
./router/user_playrecord
"
));
app
.
use
(
"
/user/update
"
,
require
(
"
./router/user_update
"
));
app
.
use
(
"
/send/text
"
,
require
(
"
./router/send_text
"
));
app
.
use
(
"
/send/playlist
"
,
require
(
"
./router/send_playlist
"
));
...
...
@@ -267,6 +266,8 @@ app.use("/playlist/create", require("./router/playlist_create"));
app
.
use
(
"
/playlist/subscribe
"
,
require
(
"
./router/playlist_subscribe
"
));
app
.
use
(
"
/playlist/update
"
,
require
(
"
./router/playlist_update
"
));
const
port
=
process
.
env
.
PORT
||
3000
;
app
.
listen
(
port
,
()
=>
{
...
...
router/playlist_update.js
0 → 100644
浏览文件 @
69162ac6
const
express
=
require
(
"
express
"
);
const
router
=
express
();
const
{
createWebAPIRequest
}
=
require
(
"
../util/util
"
);
router
.
get
(
"
/
"
,
(
req
,
res
)
=>
{
const
cookie
=
req
.
get
(
"
Cookie
"
)
?
req
.
get
(
"
Cookie
"
)
:
""
;
const
playlist_id
=
req
.
query
.
id
;
const
desc_detail
=
req
.
query
.
desc
||
""
;
const
tags_detail
=
req
.
query
.
tags
||
""
;
const
name_detail
=
req
.
query
.
name
;
const
data
=
{
"
/api/playlist/desc/update
"
:
'
{"id":
'
+
playlist_id
+
'
,"desc":"
'
+
desc_detail
+
'
"}
'
,
"
/api/playlist/tags/update
"
:
'
{"id":
'
+
playlist_id
+
'
,"tags":"
'
+
tags_detail
+
'
"}
'
,
"
/api/playlist/update/name
"
:
'
{"id":
'
+
playlist_id
+
'
,"name":"
'
+
name_detail
+
'
"}
'
,
csrf_token
:
""
};
createWebAPIRequest
(
"
music.163.com
"
,
"
/weapi/batch
"
,
"
POST
"
,
data
,
cookie
,
music_req
=>
{
res
.
send
(
music_req
);
},
err
=>
res
.
status
(
502
).
send
(
"
fetch error
"
)
);
});
module
.
exports
=
router
;
router/user_update.js
0 → 100644
浏览文件 @
69162ac6
const
express
=
require
(
"
express
"
);
const
router
=
express
();
const
{
createWebAPIRequest
}
=
require
(
"
../util/util
"
);
router
.
get
(
"
/
"
,
(
req
,
res
)
=>
{
const
cookie
=
req
.
get
(
"
Cookie
"
)
?
req
.
get
(
"
Cookie
"
)
:
""
;
// 暂时不提供更换头像接口
// gender为0表示保密,1为男性,2为女性
const
gender_type
=
req
.
query
.
gender
;
// birthday 为unix13位时间戳
// province_number and city_number
const
data
=
{
avatarImgId
:
"
0
"
,
birthday
:
req
.
query
.
birthday
,
city
:
req
.
query
.
city
,
gender
:
gender_type
,
nickname
:
req
.
query
.
nickname
,
province
:
req
.
query
.
province
,
signature
:
req
.
query
.
signature
,
csrf_token
:
""
};
createWebAPIRequest
(
"
music.163.com
"
,
"
/weapi/user/profile/update
"
,
"
POST
"
,
data
,
cookie
,
music_req
=>
res
.
send
(
music_req
),
err
=>
res
.
status
(
502
).
send
(
"
fetch error
"
)
);
});
module
.
exports
=
router
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录