Comments (3)
噢噢。谢谢了噢。现在能用了。
我在请求接口的时候,保存下返回的cook。
wx.setStorageSync('cookie',res.header['Set-Cookie'])
然后在需要的地方请求的时候设置header
header: { cookie: wx.getStorageSync('cookie')},
这样就可以请求到数据了。
from neteasecloudmusicapi.
要理解 Cookie 的本质是浏览器端的 token, 只要把 Cookie 存在一个变量里,然后把读取 Cookie 的地方修改成读取这个变量就行
from neteasecloudmusicapi.
@bitqiang 你的小程序使用什么库做的请求啊 我这边wx.request发的请求 响应里没看到set-cookie
from neteasecloudmusicapi.
Related Issues (20)
- 私信接口成功率很低,容易遇到返回 Code: 2201。即使接口调成功,实际网易云中会提示:文案包含敏感词,发送失败
- Cannot find module \node_modules\pac-proxy-agent\dist\index.js HOT 2
- 相似MV 接口总是返回同样的结果
- 增加村民证信息的
- 能否增加“继续上次播放” HOT 2
- 1
- /artist/detail 接口登录状态无法获取歌手详情 HOT 2
- 歌手简要百科信息(ugc_artist_get.js) HOT 2
- 小白一枚,请教一下大佬如何在api里面默认cookie设置为自己的 HOT 1
- 增加歌曲添加到最近播放列表 HOT 4
- 希望增加”音乐合伙人“相关接口功能
- 麻烦Close了
- 获取歌单详情用不了了
- IPv6回环地址请求导致406 “操作频繁,请稍候再试” HOT 1
- 歌单详情获取出错
- 现在支持unm代理吗?
- bug--调用follow接口bug反馈以及解决方案 HOT 2
- 返回的空数据,无法获取歌曲url HOT 3
- <用户播放记录周记录,歌曲播放次数playcount都为0,有bug issues> HOT 2
- 播客上传声音文件过大时报404错误 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neteasecloudmusicapi.