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 阅读次数统计错误问题 #915

Closed
5 of 11 tasks
xuejiaW opened this issue Jun 14, 2019 · 1 comment · Fixed by #916
Closed
5 of 11 tasks

Leancloud 阅读次数统计错误问题 #915

xuejiaW opened this issue Jun 14, 2019 · 1 comment · Fixed by #916

Comments

@xuejiaW
Copy link

xuejiaW commented Jun 14, 2019

I agree and want to create new issue


Expected behavior

1.hexo s创建的本地访问地址不增加阅读次数
2.是否有方法将某些IP地址不纳入文章阅读数的统计之中

Actual behavior

访问hexo s生成的http://localhost:4000/XXX文章页面仍然会被统计入阅读次数

Steps to reproduce the behavior

1.安全中心中仅包含博客地址,未包含本地地址
image
2.通过hexo s,创建本地调试地址,并访问文章
3.阅读数增加

  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information


Package dependencies Information


Hexo Information

Hexo version


Hexo Configuration

NexT Information

NexT Version:

  • Latest Master branch
  • Latest Release version
  • Old version

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces
  • Gemini

NexT Configuration:

leancloud_visitors:
  enable: true
  app_id: TGA1EB8Nf5aw6uJBpw45pBJQ-gzGzoHsz
  app_key: z1vCYavVUbCGuMjNMcrsvShN
  # Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security
  # If you don't care about security in leancloud counter and just want to use it directly
  # (without hexo-leancloud-counter-security plugin), set `security` to `false`.
  security: false
  betterPerformance: false

busuanzi_count:
  enable: true
  total_visitors: true
  total_visitors_icon: user
  total_views: true
  total_views_icon: eye
  post_views: false
  post_views_icon: eye


valine:
  enable: true # When enable is set to be true, leancloud_visitors is recommended to be closed for the re-initialization problem within different leancloud adk version.
  appid:  TGA1EB8Nf5aw6uJBpw45pBJQ-gzGzoHsz
  appkey:  z1vCYavVUbCGuMjNMcrsvShN
  notify: true # mail notifier, See: https://github.com/xCss/Valine/wiki
  verify: true # Verification code
  placeholder: 匿名的!不需要注册!想说啥直接说吧!
  avatar: mm # gravatar style
  guest_info: nick,mail,link # custom comment header
  pageSize: 10 # pagination size
  language: # language, available values: en, zh-cn
  visitor: false # leancloud-counter-security is not supported for now. When visitor is set to be true, appid and appkey are recommended to be the same as leancloud_visitors' for counter compatibility. Article reading statistic https://valine.js.org/visitor.html
  comment_count: false # if false, comment count will only be displayed in post page, not in home page

Other Information

@stevenjoezhang
Copy link
Contributor

Fixed in #916

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

Successfully merging a pull request may close this issue.

3 participants