Discuz!小编 发表于 2025-11-25 11:55:49

在线人数如何恢复为实际在线人数? New

感觉网站没有那么多的在线人数,请问如何将这个人数改为实际在线人数?之前好像也没有用过相关插件。


我知道答案 回答被采纳将会获得1 贡献 已有3人回答

杰克 发表于 2025-11-25 11:56:40

有啊,在线人数是虚的,但是会员那个地方的是真实的。。 。

瑾瑜 发表于 2025-11-25 11:56:51

会不会是缓存,你下线一定时间系统还认为你在线

Sylvia 发表于 2025-11-25 11:57:09

在线本身就是一个模糊算法,你基本不太可能精确知道某一个人是否“在线”,一般是通过session机制取的在线用户量。只有登录的用户是相对精确的数,但也存在需要一定时间内无操作判断为离线的判断,实际上依旧是猜测
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}
页: [1]
查看完整版本: 在线人数如何恢复为实际在线人数? New