mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-02 19:02:10 +08:00
update docs
This commit is contained in:
parent
34a2c1f93f
commit
9de0ab9787
@ -112,7 +112,7 @@ $ set PORT=4000 && node app.js
|
||||
|
||||
## 接口文档
|
||||
### 调用前须知
|
||||
- 由于接口做了缓存处理(缓存2分钟,可在 app.js 设置),相同的 url 会在两分钟内只向网易服务器发一次请求,如果遇到不需要缓存结果的接口,可在请求 url 后面加一个时间戳参数使url 不同,例子: `/simi/playlist?id=347230×tamp=1503019930000`
|
||||
- 由于接口做了缓存处理(缓存2分钟,可在 app.js 设置,可能会导致登陆后获取不到 cookie),相同的 url 会在两分钟内只向网易服务器发一次请求,如果遇到不需要缓存结果的接口,可在请求 url 后面加一个时间戳参数使url 不同,例子: `/simi/playlist?id=347230×tamp=1503019930000`
|
||||
|
||||
- 301 错误基本都是没登录就调用了需要登录的接口,如果登陆了还是提示 301, 基本都是缓存把数据缓存起来了,解决方法是等待 2 分钟或者重启服务重新登录后再调用接口
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user