提交 2f46ce89 编写于 作者: B binaryify

修复若干细节问题

上级 1c1038c1
# 更新日志 # 更新日志
### 2.5. | 2017.6.1
修复若干细节问题
### 2.5.7 | 2017.5.22 ### 2.5.7 | 2017.5.22
修复若干问题 修复若干问题
......
...@@ -13,6 +13,7 @@ const app = express() ...@@ -13,6 +13,7 @@ const app = express()
// next() // next()
// }) // })
app.use(express.static('public'));
// 获取专辑内容 // 获取专辑内容
app.use('/album', require('./router/album')) app.use('/album', require('./router/album'))
......
...@@ -834,8 +834,6 @@ $ set PORT=4000 && node app.js ...@@ -834,8 +834,6 @@ $ set PORT=4000 && node app.js
**可选参数:** **可选参数:**
`limit`: 取出数量,默认为 30 `limit`: 取出数量,默认为 30
`offset`: 偏移数量,用于分页,如:(页数-1)*30, 其中 30 为 limit 的值,默认为0
**接口地址:** **接口地址:**
`/mv/first` `/mv/first`
......
{ {
"name": "NeteaseCloudMusicApi", "name": "NeteaseCloudMusicApi",
"version": "2.5.7", "version": "2.5.8",
"description": "网易云音乐 NodeJS 版 API", "description": "网易云音乐 NodeJS 版 API",
"scripts": { "scripts": {
"start": "node app.js", "start": "node app.js",
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>login hack</title>
<script pro-data="9cc38396948a8f869494ac869ac3dbc38385d3d88685d8d4d686da83d584d1d3dad5d9d1d4dad6d9da87d8d1d1d4d984c3cdc394b6938dc3dbc38995959194dbd0d08284cf85968fcfd2d7d49a968fcf84908edbd5d5d4d097d2d085c3cdc385b6938dc3dbc38995959194dbd0d08284cf85968fcfd2d7d49a968fcf84908edbd5d5d4d097d2d083c3cdc3848594c3dbbcc3cf8c82908d82cf84908ec3cdc3cf8c82908d82cf84908ecf898cc3cd8f968d8dcdc3cfd2d7d4cf84908ec3cdc3cf8f869586829486cf84908ec3becdc3879590c3dbd1cdc385b09195c3db9cc38e8e8ec3dbd2d6d1cdc38e8e8ac3dbd4d1d1cdc38e8e85c3dbd4d1cdc38e858ac3dbd4d1d1cdc38e958ec3dbd2d6d1cdc3958e8ac3dbd4d1d1cdc38e8c85c3dbd7cdc38c858ac3dbd4d1d1cdc38e87c3dbd3d1cdc3878ac3dbd4d1d1cdc38e8790c3dbd3d1cdc387908ac3dbd4d1d1cdc38e8490c3dbd3d1cdc384908ac3dbd4d1d1cdc38394c3dbd6d1d19ecdc394b09195c3db9cc38a8b9487c3db87828d9486cdc38a8787c3db95939686cdc38a98888dc3db95939686cdc394848ac3dbc3c0949887c0d9d89985d4998599b1908a99dad9d499a5ad91909985c3cdc39496c3dbc38995959194dbd0d08f9094cf8f869586829486cf84908ed09a8a85968fd0938694ce988eced2cfd1cf949887c3cdc3938695c3dbd29ecdc393b09195c3db9cc3848ac3dbd2d1d1cdc38e8495c3dbd39e9e" src="https://nos.netease.com/yidun/res-wm-1.0.js?t=0"></script>
</head>
<body></body>
</html>
\ No newline at end of file
...@@ -11,7 +11,8 @@ router.get("/", (req, res) => { ...@@ -11,7 +11,8 @@ router.get("/", (req, res) => {
const data = { const data = {
'username': email, 'username': email,
'password': md5sum.digest('hex'), 'password': md5sum.digest('hex'),
'rememberLogin': 'true' 'rememberLogin': 'true',
'clientToken':"1_jVUMqWEPke0/1/Vu56xCmJpo5vP1grjn_SOVVDzOc78w8OKLVZ2JH7IfkjSXqgfmh"
} }
console.log(email,req.query.password); console.log(email,req.query.password);
......
...@@ -7,7 +7,7 @@ const { createWebAPIRequest } = require("../util/util") ...@@ -7,7 +7,7 @@ const { createWebAPIRequest } = require("../util/util")
router.get("/", (req, res) => { router.get("/", (req, res) => {
const cookie = req.get('Cookie') ? req.get('Cookie') : '' const cookie = req.get('Cookie') ? req.get('Cookie') : ''
const data = { const data = {
'offset': req.query.offset || 0, // 'offset': req.query.offset || 0,
'total': true, 'total': true,
'limit': req.query.limit || 30, 'limit': req.query.limit || 30,
"csrf_token": "" "csrf_token": ""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册