<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

小修改让点击数(浏览量)变得更随机

时间:2020-12-15

一般来说,织梦网站是每刷一次,点击数(浏览量)增加1,那怎么怎么样才能刷新一次就可以随机增加1-20次呢?

下面与大家分享一下代码:

修改: \plus\count.php

找到:
if(!empty($maintable))
{
    $dsql->ExecuteNoneQuery(" UPDATE `{$maintable}` SET click=click+1  WHERE {$idtype}='$aid' ");
}

修改为:

if(!empty($maintable))
{
    $rand_num = rand(1,20);     
    $dsql->ExecuteNoneQuery(" UPDATE `{$maintable}` SET click=click+$rand_num WHERE {$idtype}='$aid' ");
}


------------------------------
红色数字可以自己改。
0
首页
案例
关于
联系