提交 f78526ad 编写于 作者: B binaryify

修复签到接口 #62

上级 5ecf33eb
# 更新日志
### 2.6.0 | 2017.6.25
修复签到接口
### 2.5.9 | 2017.6.14
增加启动说明页
......
......@@ -13,10 +13,34 @@
[darknessomi/musicbox](https://github.com/darknessomi/musicbox)
## 版本新特性
[sqaiyan/netmusic-node](https://github.com/sqaiyan/netmusic-node)
## 版本新特性
### 2.6.0 | 2017.6.25
修复签到接口
### 2.5.9 | 2017.6.14
增加启动说明页
### 2.5.8 | 2017.6.1
修复若干细节问题
### 2.5.7 | 2017.5.22
修复若干问题
### 2.5.6 | 2017.5.14
增加动态消息接口
### 2.5.5 | 2017.5.10
修复 mv 排行榜接口崩溃问题
### 2.5.4 | 2017.5.5
新增点赞接口,更新文档
### 2.5.3 | 2017.5.2
修复歌手单曲数据空白问题和文档获取歌手单曲url 描述问题,更新文档
### 2.5.0 | 2017.4.29
增加 mv/专辑/歌单评论接口,增加云盘相关接口,增加获取用户动态/信息接口,增加关注/粉丝列表接口,增加收藏歌单接口,增加相似 mv/歌曲/用户接口,增加 banner 接口,增加刷新登录接口,增加电台相关接口,补充评论接口,更新文档
......@@ -35,15 +59,20 @@
### 2.3.0 | 2017.4.15
增加排行榜接口,更新文档
### 2.2.0 | 2017.4.14
### 2.2.0 |2017.4.14
增加私人 FM, 喜欢歌曲,垃圾桶,每日签到等接口,更新文档
### 2.1.3 | 2017.4.6
改善文档
### 2.1.0 | 2017.4.6
增加获取评论接口以及对应单元测试,增加更新日志
### 2.0.0 | 2017.4.1
版本升级到 2.0.增加使用文档,完成项目重构,增加更完善的单元测试,升级 api 到 v2+,支持登录并获取用户信息和创建的歌单,可通过获取音乐 url 接口获取用户歌单里的的音乐,获取每日推荐歌单和每日推荐音乐
## 功能特性
1. 登录
2. 刷新登录
......
{
"name": "NeteaseCloudMusicApi",
"version": "2.5.9",
"version": "2.6.0",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
......
// 签到
const express = require("express")
const express = require('express')
const router = express()
const { createWebAPIRequest } = require("../util/util")
const { createWebAPIRequest } = require('../util/util')
router.get("/", (req, res) => {
router.get('/', (req, res) => {
const cookie = req.get('Cookie') ? req.get('Cookie') : ''
let type = req.query.type || 0 //0为安卓端签到 3点经验,1为网页签到,2点经验
const data = {
"csrf_token": ""
csrf_token: '',
type
}
// {'android': {'point': 3, 'code': 200}, 'web': {'point': 2, 'code': 200}}
// {'android': {'code': -2, 'msg': '重复签到'}, 'web': {'code': -2, 'msg': '重复签到'}}
// 'android': {'code': 301}, 'web': {'code': 301}}
let type = req.query.type || 0 //0为安卓端签到 3点经验,1为网页签到,2点经验
const action = `/weapi/point/dailyTask?type=${type}`
createWebAPIRequest(
'music.163.com',
action,
'/weapi/point/dailyTask',
'POST',
data,
cookie,
......@@ -25,6 +25,4 @@ router.get("/", (req, res) => {
)
})
module.exports = router
\ No newline at end of file
module.exports = router
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册