diff --git a/README.MD b/README.MD index ca6ab7c..b858917 100644 --- a/README.MD +++ b/README.MD @@ -41,7 +41,7 @@ set PORT=4000 && node app.js # Windows - [在线文档](https://neteasecloudmusicapienhanced.js.org/) - [NPM 包地址](https://www.npmjs.com/package/@neteaseapireborn/api) -- [Dockerhub 主页](https://hub.docker.com/repository/docker/moefurina/ncm-api/) +- [Dockerhub 主页](https://hub.docker.com/r/moefurina/ncm-api) ## 常见部署方式 diff --git a/server.js b/server.js index d556266..2640556 100644 --- a/server.js +++ b/server.js @@ -336,17 +336,17 @@ async function serveNcmApi(options) { const appExt = app appExt.server = app.listen(port, host, () => { console.log(` - _ _ _____ __ __ _ ____ ___ - | \\ | |/ ____| \\/ | /\\ | | | _ \\_ | - | \\| | | | \\ / | / \\ | | | |_) | | - | . \` | | | |\\/| | / /\\ \\ | | | __/| | - | |\\ | |____| | | | / ____ \\| |__| | | | - |_| \\_|\\_____|_| |_| /_/ \\_\\____|_| |_| + _ _ _____ __ __ + | \\ | |/ ____| \\/ | + | \\| | | | \\ / | + | . \` | | | |\\/| | + | |\\ | |____| | | | + |_| \\_|\\_____|_| |_| `) console.log(` ╔═╗╔═╗╦ ╔═╗╔╗╔╦ ╦╔═╗╔╗╔╔═╗╔═╗╔╦╗ ╠═╣╠═╝║ ║╣ ║║║╠═╣╠═╣║║║║ ║╣ ║║ - ╩ ╩╩ ╩═╝ ╚═╝╝╚╝╩ ╩╩ ╩╝╚╝╚═╝╚═╝═╩╝ + ╩ ╩╩ ╩ ╚═╝╝╚╝╩ ╩╩ ╩╝╚╝╚═╝╚═╝═╩╝ `) logger.info(` - Server started successfully @ http://${host ? host : 'localhost'}:${port} diff --git a/tsconfig.json b/tsconfig.json index 9656c53..37b19e1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "target": "ES2015", "module": "commonjs", "experimentalDecorators": true, + "ignoreDeprecations": "6.0", "moduleResolution": "node", "lib": [ "esnext", diff --git a/util/option.js b/util/option.js index 4dc6fbd..7d7c8e8 100644 --- a/util/option.js +++ b/util/option.js @@ -1,7 +1,7 @@ const createOption = (query, crypto = '') => { return { crypto: query.crypto || crypto || '', - cookie: query.cookie, + cookie: query.cookie || process.env.NETEASE_COOKIE, ua: query.ua || '', proxy: query.proxy, realIP: query.realIP,