mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-22 14:43:10 +00:00
歌单封面上传接口缺失参数时返回状态码修正
This commit is contained in:
parent
6f6501cf10
commit
8cc6fe8676
@ -1,4 +1,7 @@
|
||||
# 更新日志
|
||||
### 4.5.6 | 2022.02.12
|
||||
- 歌单封面上传接口缺失参数时返回状态码修正
|
||||
|
||||
### 4.5.6 | 2022.02.09
|
||||
- 新增重复昵称检测接口 [#1469](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1469)
|
||||
|
||||
|
@ -1,5 +1,14 @@
|
||||
const uploadPlugin = require('../plugins/upload')
|
||||
module.exports = async (query, request) => {
|
||||
if (!query.imgFile) {
|
||||
return {
|
||||
status: 400,
|
||||
body: {
|
||||
code: 400,
|
||||
msg: 'imgFile is required',
|
||||
},
|
||||
}
|
||||
}
|
||||
const uploadInfo = await uploadPlugin(query, request)
|
||||
const res = await request(
|
||||
'POST',
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "4.5.6",
|
||||
"version": "4.5.7",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user