97 Commits

Author SHA1 Message Date
binaryify
957213bb93 fix: 修复anonymous_token路径异常 #1795 2023-09-12 11:22:57 +08:00
binaryify
8c52f4de1b fix: 修复vercel无文件创建权限问题 #1796 2023-09-09 11:15:56 +08:00
binaryify
52c6021d89 update: anonymous_token配置抽离, 生成稳定性问题修复 2023-09-08 21:46:42 +08:00
binaryify
c2621a5870 update: anonymous_token 动态生成 2023-08-21 21:34:41 +08:00
binaryify
e528f93ef7 feat: 匿名登录username算法 2023-08-21 18:24:48 +08:00
binaryify
b4f6ba0884 解决网络拥堵提示问题 2022-09-12 16:58:07 +08:00
binaryify
e174de0448 客户端ip传入完善 2022-06-07 11:03:18 +08:00
binaryify
b3ca43267a 服务启动刷新游客cookie 2022-05-29 21:45:48 +08:00
pan93412
5bf53028ef
feat(server): allow passing modules manually
自行維護 require 名單以相容 Webpack。
2022-01-26 14:14:24 +08:00
pan93412
7985690987
refactor(server): separate server from app
我們需要 NCM API 的伺服器部分,但 app.js
目前的做法讓我們不太好單獨啟動伺服器。

我將 app.js 的伺服器部分抽成各個函數,並將原有
會 blocking 的函數更改為非同步函式。
這樣不僅能最大化善用 Node.js 的 Event Loop,
亦能提升未來維護的程式碼易讀性。
2022-01-26 11:29:07 +08:00
WeiJian Chen
9ebdb6a1d8
增加二进制文件node标识 2022-01-16 23:52:31 +08:00
binaryify
0660928dc5 修复 URI malformed 错误 #1347 #1287 #1110 2021-09-08 14:12:49 +08:00
binaryify
0e658f9b5a 修复调用不存在的接口导致API崩溃的问题 #1345 2021-09-04 14:56:28 +08:00
pengliang
54195037a4
Update app.js
修正缺少分号引起的错误
2021-08-09 22:07:54 +08:00
Song Yihan
f47c7269dd
Fix the wrong cookie split regex 2021-08-09 10:49:49 +08:00
Marco Rios
ff5ace990c
Polynomial regular expression
A regular expression that can require polynomial time to match may be vulnerable to denial-of-service attacks.
2021-08-07 01:20:28 +08:00
moonrailgun
3b04746278 fix: samesite problem in cors request after chrome 80
After Chrome 80, the default samesite in cookie will be set to `Lax`.
And i am try to fix it. Disable SameSite policy when deploy by tls.

For more detail about Chrome 80, checkout:
- https://support.google.com/chrome/a/thread/27911174/chrome-80-release-notes-are-now-live?hl=en
- https://blog.chromium.org/2020/02/samesite-cookie-changes-in-february.html

For more detail about SameSite, checkout:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
2021-06-11 14:31:04 +08:00
binaryify
63ff22bf34 fix eslint error 2021-06-01 10:12:52 +08:00
binaryify
ea86e5bbeb 新增已购单曲,获取mlog播放地址,将mlog id转为视频id,vip成长值,vip成长值获取记录,vip任务,领取vip成长值 等接口 #1248 2021-05-29 16:12:12 +08:00
greenhat616
eba9641aa0
fix: lint 2021-05-24 02:24:26 +08:00
Clark
39b32b4b61 1. 在调用模块前,若req.query.cookiereq.body.cookie是字符串,则先解码,再转为对象。
2. 删除在各模块中的转换。
3. 更新文档。
2021-03-26 02:02:38 +08:00
binaryify
3b15fe9024 修复代码错误 2020-09-12 10:23:21 +08:00
binaryify
4f7266e4a5 代码格式化 2020-09-12 10:20:25 +08:00
binaryify
8df5d7a790 新增更新头像,歌单封面上传接口和相关例子 #403 #857 2020-08-03 23:09:36 +08:00
binaryify
eb77b0474e 修复直接调用时传入 cookie 不生效的问题 #822 2020-06-15 12:49:10 +08:00
binaryify
494a33c385 #816, #817, #818 2020-06-10 23:21:26 +08:00
binaryify
f420959df5 v3.32.0 2020-06-03 21:17:14 +08:00
binaryify
e9fe4351b4 登录接口返回内容增加cookie字段,支持手动传入cookie 2020-05-17 20:21:03 +08:00
binaryify
5951985e4c 修改默认绑定 HOST #620 2019-10-28 11:17:38 +08:00
binaryify
641a72b06c #615 2019-10-25 14:58:34 +08:00
Bob
9bf9ddd199 Added customizable host.
Use 'HOST=0.0.0.0 node app.js' to listen on all ip's.
2019-10-23 20:05:07 +08:00
Nzix
52a4dd541f fit for preflight request 2019-08-25 12:50:31 +08:00
binaryify
b98d611989 add eslint 2019-08-16 10:57:31 +08:00
Nzix
bfa194e849 POST method support fixed 2018-10-31 00:29:58 +08:00
Nzix
d5c0039566 unified code style 2018-10-21 03:23:46 +08:00
Nzix
6421a6c9e3 refactor encryption (support linux api) 2018-10-20 13:16:47 +08:00
binaryify
986a4b0dd5 v3.0.0 2018-10-14 22:45:10 +08:00
Nzix
8fb18f030b error fixed 2018-10-05 16:15:54 +08:00
Nzix
d1ae7f4b56 no intrusive with legacy code 2018-10-05 16:12:52 +08:00
Nzix
08b5d5af27 change router export mode 2018-09-30 20:45:10 +08:00
Nzix
981c0f7d39 rename for neatness 2018-09-25 19:52:54 +08:00
Nzix
0d373be689 rewrite unit tests 2018-09-25 19:49:10 +08:00
Nzix
50adbfd804 allocate js cookie in middleware, update res cookie distribution 2018-09-25 19:31:47 +08:00
jjeejj
710a9b6ed2 remove-npmview-dependency 2018-09-16 11:26:50 +08:00
binaryify
106a153597 新增版本检查功能 v2.20.0 2018-09-06 21:11:27 +08:00
Gavin Gong
1d9935fb07 use absolute path to read router files 2018-08-22 18:16:37 +08:00
Gavin Gong
ac1fa995d3 fix: 手机登陆异常 2018-06-13 20:56:59 +08:00
dds_feng
cc2783a248 简化路由导出方式 2018-05-31 13:11:18 +08:00
dds_feng
b8d9fac78f 自动注册 router 目录中的js文件为对应的路由, 免除在app.js中不停的添加 router 的问题 2018-05-31 12:32:33 +08:00
dds_feng
7b9b151319 调整 对外路由 与 router 目录中文件的对应关系 2018-05-31 11:53:06 +08:00