业务经理

微信扫描以上二维码

028-61286886

技术咨询

pdf文件 dr_down_file 下载功能变成的预览

迅睿框架 更新 2026-03-16 15:48:03 月影飞雪

{dr_down_file($t['file'],$t['title'])}  为什么 pdf  和图片下载  都是  /uploadfile/202603/2cd148d7bf87f18.pdf  

{dr_get_file($t['file'])}和这个结果是一样的


方案

  • 开源社区技术 #1 · 2026-03-16 15:10:42
    $t['file'] 说明你这个输出的不是附件id号,所以就原样输出地址
  • 月影飞雪 #2 · 2026-03-16 15:48:03
    {list action=module app=products module=download pinyin=$pinyin catid=$catid order=id page=1 join=1_download_data_0 on=id} <tr> <td><a href="{dr_get_file($t['file'])}" target="_blank" rel="nofollow" class="pdfpic">{$t.title}</a></td> <td class="time">{dr_date($t['_inputtime'], 'Y-m-d')}</td> <td> <a href="{dr_down_file($t['file'])}" target="_blank" rel="nofollow"> <i class="fa fa-download" aria-hidden="true"></i> </a> </td> </tr> {/list} 改成id 出来的是图片 不是pdf 了

迅睿系统漏洞

AI文章生成器
AI文章生成器(2026-10-27)
修正蒸馏词生成时BUG
百度AI批量检测敏感词
百度AI批量检测敏感词(2026-10-26)
优化长任务超时问题
泛解析站群系统
泛解析站群系统(2026-10-26)
添加子站时设置模板
GEO系统
GEO系统(2026-10-26)
修复抖音图文会话不持久:扩大 Cookie 域、会话 Cookie ...
APP消息推送
APP消息推送(2026-10-26)
增加自动推送任务的删除功能 增加推送内容显示函数(避免内容过长的显...
GeoSeo收录宝
GeoSeo收录宝(2026-10-25)
优化插件日志等小细节 1 优化 爬虫监控月统计超200万数据容易...