日期: 2019-03-07 09:19:16 人气: - 评论: 0
destoon7.0发布信息的时候随机增加浏览次数
找到对应模块总函数文件,这里以资讯模块为例
找到文件 module/article/article.class.php
搜索找到
$post = $this->set($post);
在下面加一行代码:
$post['hits'] = mt_rand(50,200);
意思为随机50-200之间,去发布一条测试吧。
分类标签: 随机 增加 浏览 次数