Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

阅读计数。对比LeanCloud和不蒜子 #801

Closed
ukvm opened this issue Apr 6, 2016 · 10 comments
Closed

阅读计数。对比LeanCloud和不蒜子 #801

ukvm opened this issue Apr 6, 2016 · 10 comments

Comments

@ukvm
Copy link

ukvm commented Apr 6, 2016

Expected behavior (预期行为)

阅读次数统计

Actual behavior (实际行为)

目前使用的是LeanCloud统计

Steps to reproduce the behavior (重现步骤)

增加不蒜子统计,见不蒜子
只需要几行代码

引入脚本

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script> 

添加到文章指定位置 应该是。。不会写代码😁

<span id="busuanzi_value_page_pv"><i class="fa fa-spinner"></i></span> Hits

NexT Informations

Add the ✔ sign before an item which is affected by this behavior.

NexT Version:

  • Master
  • Latest Release
  • Old version -

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces

Other Informations (Like Browser, System, Screenshots)

@iissnan
Copy link
Owner

iissnan commented Apr 7, 2016

加一个配置不难,有感兴趣的话可以给我提 PR

@mcknote
Copy link

mcknote commented Apr 7, 2016

前天用 Pingdom 測試,發現不蒜子的 js 載入時間特長,想說也用不到這個功能,就先拿掉了。不過安裝起來確實很容易。

@panzhitian
Copy link
Contributor

不蒜子读取数据的速度是比较慢,能自建服务器的话可能会更好用

@geekrainy
Copy link
Contributor

Leancloud的可靠性应该要比不蒜子好。

@ukvm
Copy link
Author

ukvm commented Apr 8, 2016

刚才测了一下,读取js的速度还可以呀。
PR #808 只有几行代码,测试没有问题,并且默认使用

用不蒜子 主要是避免再注册一个Leancloud了,话说eancloud 的功能真的蛮多的。

而且不蒜子的js放在七牛,速度应该不慢,如果说速度慢,可能是七牛的原因,七牛问答社区 很多人反映这几天云存储速度慢==

@panzhitian
Copy link
Contributor

我也提交了个#809 主要是提高可定制性,~~将某页面的pv也加入,但是因为不蒜子不支持在主页显示,所以只能在文章页可见。~~将全站的统计加入。
可能有点dirty,上传后缩进也乱了。。。

@iissnan iissnan added this to the v5.0.1 milestone Apr 9, 2016
@iissnan
Copy link
Owner

iissnan commented Apr 9, 2016

已合并 @panzhitian 的版本,多谢大家的努力。

@ukvm
Copy link
Author

ukvm commented Apr 9, 2016

@iissnan 合并之后测试一下。 底部的样式==
屏幕快照 2016-04-10 00.49.02.png
屏幕快照 2016-04-10 00.48.52.png

@ukvm ukvm closed this as completed Apr 9, 2016
@panzhitian
Copy link
Contributor

兼容性还是差点,我只在Pisces上测试了。
css那里还需增加条件,明天再fix。

@yusmile
Copy link

yusmile commented Feb 9, 2017

@carpliyz 那可以同时在一个博客上启用LeanCloud和不蒜子 两套统计吗?会不会冲突?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants