去评论
dz插件网

discuz论坛代码实现批量增加附件虚拟下载量方法!

admin
2020/08/19 15:22:55
方式如下

source\function\function_attachment.php

搜索:
  1. $postlist[$attach['pid']]['attachments'][$attach['aid']]['downloads'] = $attach['downloads'];


改成:
  1. $postlist[$attach['pid']]['attachments'][$attach['aid']]['downloads'] = $attach['downloads'] + 次数;(次数为整数 如填写1 1000 1000 1234 129820  123456 随意即可)