文档说明更新

This commit is contained in:
binaryify.zhuang 2023-02-07 17:32:40 +08:00
parent 18cc8ce66b
commit 4fc46a046c
5 changed files with 6 additions and 5 deletions

View File

@ -486,7 +486,7 @@ $ sudo docker run -d -p 3000:3000 netease-music-api
因网易增加了网易云盾验证,密码登录暂时不要使用,尽量使用短信验证码登录和二维码登录,否则调用某些接口会触发需要验证的错误 因网易增加了网易云盾验证,密码登录暂时不要使用,尽量使用短信验证码登录和二维码登录,否则调用某些接口会触发需要验证的错误
#### 1. 手机登录 #### 1. 手机登录(现在要求验证,暂时绕不过,请使用二维码登录)
**必选参数 :** **必选参数 :**
`phone`: 手机号码 `phone`: 手机号码
@ -504,7 +504,7 @@ $ sudo docker run -d -p 3000:3000 netease-music-api
**调用例子 :** `/login/cellphone?phone=xxx&password=yyy` `/login/cellphone?phone=xxx&md5_password=yyy` `/login/cellphone?phone=xxx&captcha=1234` **调用例子 :** `/login/cellphone?phone=xxx&password=yyy` `/login/cellphone?phone=xxx&md5_password=yyy` `/login/cellphone?phone=xxx&captcha=1234`
#### 2. 邮箱登录 #### 2. 邮箱登录(现在要求验证,暂时绕不过,请使用二维码登录)
**必选参数 :** **必选参数 :**

View File

@ -51,7 +51,7 @@
const imgSize = await getImgSize(file) const imgSize = await getImgSize(file)
const res = await axios({ const res = await axios({
method: 'post', method: 'post',
url: `http://localhost:3000/avatar/upload?cookie=${cookieToken}&imgSize=${ url: `/avatar/upload?cookie=${cookieToken}&imgSize=${
imgSize.width imgSize.width
}&imgX=0&imgY=0&timestamp=${Date.now()}`, }&imgX=0&imgY=0&timestamp=${Date.now()}`,
headers: { headers: {

View File

@ -50,7 +50,7 @@
formData.append('songFile', file) formData.append('songFile', file)
axios({ axios({
method: 'post', method: 'post',
url: `http://localhost:3000/cloud?time=${Date.now()}&cookie=${cookieToken}`, url: `/cloud?time=${Date.now()}&cookie=${cookieToken}`,
headers: { headers: {
'Content-Type': 'multipart/form-data', 'Content-Type': 'multipart/form-data',
}, },

View File

@ -17,6 +17,7 @@
<li>1. <a href="./search?keywords=海阔天空">搜索</a></li> <li>1. <a href="./search?keywords=海阔天空">搜索</a></li>
<li>2. <a href="./comment/music?id=186016&limit=1">歌曲评论</a></li> <li>2. <a href="./comment/music?id=186016&limit=1">歌曲评论</a></li>
<li>3. <a href="./dj/program?rid=336355127">电台节目</a></li> <li>3. <a href="./dj/program?rid=336355127">电台节目</a></li>
<li>4. <a href="/qrlogin.html">二维码登录</a></li>
</ul> </ul>
<style> <style>
html, html,

View File

@ -58,7 +58,7 @@
const imgSize = await getImgSize(file) const imgSize = await getImgSize(file)
const res = await axios({ const res = await axios({
method: 'post', method: 'post',
url: `http://localhost:3000/playlist/cover/update?id=${playlist_id}&cookie=${cookieToken}&imgSize=${ url: `/playlist/cover/update?id=${playlist_id}&cookie=${cookieToken}&imgSize=${
imgSize.width imgSize.width
}&imgX=0&imgY=0&timestamp=${Date.now()}`, }&imgX=0&imgY=0&timestamp=${Date.now()}`,
headers: { headers: {