From 0aa6169c02e9fceed4da4fd6dc371ea781f0fb50 Mon Sep 17 00:00:00 2001 From: iMaeGoo Date: Tue, 2 Aug 2022 15:58:19 +0800 Subject: [PATCH] fix: several bugs of self-hosted server (#416) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 改进 更新 IP 属地数据库 * 修复 私有部署批量获取文章评论数 API 异常 * 修复 私有部署访问量统计功能异常 * 修复 私有部署 IP 限流功能异常 --- docs/.vuepress/theme/layouts/Layout.vue | 2 +- docs/en/quick-start.md | 12 ++-- docs/quick-start.md | 12 ++-- package.json | 2 +- src/client/version.js | 2 +- src/server/function/twikoo/package.json | 4 +- src/server/function/twikoo/utils/import.js | 6 ++ src/server/function/twikoo/utils/lib.js | 2 +- src/server/self-hosted/index.js | 66 ++++++++++------------ src/server/self-hosted/package.json | 4 +- src/server/vercel-min/package.json | 2 +- src/server/vercel/package.json | 4 +- 12 files changed, 60 insertions(+), 58 deletions(-) diff --git a/docs/.vuepress/theme/layouts/Layout.vue b/docs/.vuepress/theme/layouts/Layout.vue index a583672db..af025b895 100644 --- a/docs/.vuepress/theme/layouts/Layout.vue +++ b/docs/.vuepress/theme/layouts/Layout.vue @@ -13,7 +13,7 @@
- + diff --git a/docs/en/quick-start.md b/docs/en/quick-start.md index 6b0fddc8d..681123ac7 100644 --- a/docs/en/quick-start.md +++ b/docs/en/quick-start.md @@ -49,7 +49,7 @@ exports.main = require('twikoo-func').main 8. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 `package.json`,回车 9. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖” ``` json -{ "dependencies": { "twikoo-func": "1.6.0" } } +{ "dependencies": { "twikoo-func": "1.6.1" } } ``` ### 命令行部署 @@ -206,7 +206,7 @@ twikoo: ``` html
- + +