File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ exports.main = require('twikoo-func').main
44448 . 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 ` package.json ` ,回车
45459 . 复制以下代码、粘贴到代码框中,点击“保存并安装依赖”
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 >
179179twikoo .init ({
180180 envId: ' 您的环境id' ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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
3131const DOMPurify = createDOMPurify ( window )
3232
3333// 常量 / constants
34- const VERSION = '1.4.7 '
34+ const VERSION = '1.4.8 '
3535const RES_CODE = {
3636 SUCCESS : 0 ,
3737 FAIL : 1000 ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1- { "dependencies" : { "twikoo-vercel" : " 1.4.7 " } }
1+ { "dependencies" : { "twikoo-vercel" : " 1.4.8 " } }
Original file line number Diff line number Diff line change 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
2727const DOMPurify = createDOMPurify ( window )
2828
2929// 常量 / constants
30- const VERSION = '1.4.7 '
30+ const VERSION = '1.4.8 '
3131const RES_CODE = {
3232 SUCCESS : 0 ,
3333 NO_PARAM : 100 ,
@@ -1478,7 +1478,7 @@ function addQQMailSuffix (mail) {
14781478async function getQQAvatar ( qq ) {
14791479 try {
14801480 const qqNum = qq . replace ( / @ q q .c o m / 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 )
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments