Skip to content

Commit ce1cb87

Browse files
committed
fix: Vercel后端QQ邮箱回评的问题
1 parent 5183f8c commit ce1cb87

10 files changed

Lines changed: 14 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![](https://img.shields.io/npm/v/twikoo)](https://www.npmjs.com/package/twikoo)
66
[![](https://img.shields.io/bundlephobia/minzip/twikoo)](https://bundlephobia.com/result?p=twikoo)
77
[![](https://img.shields.io/npm/dt/twikoo)](https://www.npmjs.com/package/twikoo)
8+
[![](https://data.jsdelivr.com/v1/package/npm/twikoo/badge)](https://www.jsdelivr.com/package/npm/twikoo)
89
[![](https://img.shields.io/npm/l/twikoo)](./LICENSE)
910

1011
一个简洁、安全、免费的静态网站评论系统,基于[腾讯云开发](https://curl.qcloud.com/KnnJtUom)。<br>

docs/.vuepress/theme/layouts/Layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<!-- Twikoo -->
1515
<div id="twikoo"></div>
16-
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.4.7/dist/twikoo.all.min.js" ref="twikooJs"></script>
16+
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.4.8/dist/twikoo.all.min.js" ref="twikooJs"></script>
1717
</div>
1818
</template>
1919
</ParentLayout>

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![](https://img.shields.io/npm/v/twikoo)](https://www.npmjs.com/package/twikoo)
66
[![](https://img.shields.io/bundlephobia/minzip/twikoo)](https://bundlephobia.com/result?p=twikoo)
77
[![](https://img.shields.io/npm/dt/twikoo)](https://www.npmjs.com/package/twikoo)
8+
[![](https://data.jsdelivr.com/v1/package/npm/twikoo/badge)](https://www.jsdelivr.com/package/npm/twikoo)
89
[![](https://img.shields.io/npm/l/twikoo)](https://github.com/imaegoo/twikoo/blob/dev/LICENSE)
910

1011
一个简洁、安全、免费的静态网站评论系统,基于[腾讯云开发](https://curl.qcloud.com/KnnJtUom)。<br>

docs/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exports.main = require('twikoo-func').main
4444
8. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 `package.json`,回车
4545
9. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖”
4646
``` json
47-
{ "dependencies": { "twikoo-func": "1.4.7" } }
47+
{ "dependencies": { "twikoo-func": "1.4.8" } }
4848
```
4949

5050
### 命令行部署
@@ -174,7 +174,7 @@ twikoo:
174174

175175
``` html
176176
<div id="tcomment"></div>
177-
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.4.7/dist/twikoo.all.min.js"></script>
177+
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.4.8/dist/twikoo.all.min.js"></script>
178178
<script>
179179
twikoo.init({
180180
envId: '您的环境id',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twikoo",
3-
"version": "1.4.7",
3+
"version": "1.4.8",
44
"description": "A simple comment system based on Tencent CloudBase (tcb).",
55
"author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
66
"license": "MIT",

src/function/twikoo/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Twikoo cloudbase function v1.4.7
2+
* Twikoo cloudbase function v1.4.8
33
* (c) 2020-present iMaeGoo
44
* Released under the MIT License.
55
*/
@@ -31,7 +31,7 @@ const window = new JSDOM('').window
3131
const DOMPurify = createDOMPurify(window)
3232

3333
// 常量 / constants
34-
const VERSION = '1.4.7'
34+
const VERSION = '1.4.8'
3535
const RES_CODE = {
3636
SUCCESS: 0,
3737
FAIL: 1000,

src/function/twikoo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twikoo-func",
3-
"version": "1.4.7",
3+
"version": "1.4.8",
44
"description": "A simple comment system based on Tencent CloudBase (tcb).",
55
"author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
66
"license": "MIT",

src/vercel-min/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "dependencies": { "twikoo-vercel": "1.4.7" } }
1+
{ "dependencies": { "twikoo-vercel": "1.4.8" } }

src/vercel/api/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Twikoo vercel function v1.4.7
2+
* Twikoo vercel function v1.4.8
33
* (c) 2020-present iMaeGoo
44
* Released under the MIT License.
55
*/
@@ -27,7 +27,7 @@ const window = new JSDOM('').window
2727
const DOMPurify = createDOMPurify(window)
2828

2929
// 常量 / constants
30-
const VERSION = '1.4.7'
30+
const VERSION = '1.4.8'
3131
const RES_CODE = {
3232
SUCCESS: 0,
3333
NO_PARAM: 100,
@@ -1478,7 +1478,7 @@ function addQQMailSuffix (mail) {
14781478
async function getQQAvatar (qq) {
14791479
try {
14801480
const qqNum = qq.replace(/@qq.com/ig, '')
1481-
const result = await axios.get(`https://ptlogin2.qq.com/getface?imgtype=4&uin=${qqNum}`)
1481+
const result = await axios.get(`https://ssl.ptlogin2.qq.com/getface?imgtype=4&uin=${qqNum}`, { timeout: 5000 })
14821482
if (result && result.data) {
14831483
const start = result.data.indexOf('http')
14841484
const end = result.data.indexOf('"', start)

src/vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twikoo-vercel",
3-
"version": "1.4.7",
3+
"version": "1.4.8",
44
"description": "A simple comment system based on Tencent CloudBase (tcb).",
55
"author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
66
"license": "MIT",

0 commit comments

Comments
 (0)