迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務經(jīng)理
微信掃描以上二維碼
028-61286886
技術咨詢
http://www.apdwn.com/doc/710.html
這個文章內(nèi)的附件id如何獲取的,有沒有上面辦法直接顯示文件大小和文件上傳的時間
可以的
參考文檔:《附件信息》
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復@迅睿框架技術-實習 這個文檔地址我已經(jīng)貼在問題里了,我是問如何獲取上傳時間,id我拿到了
你把你的調(diào)用代碼發(fā)來,我給你小改小改
{module module=download catid=13 order=updatetime } {loop $t.fj $i $c} <a href="{dr_down_file($c.file)}" target="_blank" class="download-item sr_b"> {/loop} <div class="download-item-cell">{$t.title}</div> <div class="download-item-cell"> {loop $t.fj $i $c} {php $data = \Phpcmf\Service::C()->get_attachment($c.file);} {dr_format_file_size($data.filesize)} {/loop} </div> <div class="download-item-cell">{dr_date($t._inputtime, 'Y-m-d')}</div> <div class="download-item-cell"> <div class="download-img"> <img src="{HOME_THEME_PATH}images/download.svg" alt="" /> </div> <div class="download-img-act"> <img src="{HOME_THEME_PATH}images/download-active.svg" alt="" /> </div> </div> </a> {/module}
回復@迅睿框架技術-實習
{module module=download catid=13 order=updatetime } {loop $t.fj $i $c} <a target="_blank" href="{dr_down_file($c.file)}" target="_blank" class="download-item sr_b"> {/loop} <div class="download-item-cell">{$t.title}</div> <div class="download-item-cell"> {loop $t.fj $i $c} {php $data = \Phpcmf\Service::C()->get_attachment($c.file);} {dr_format_file_size($data.filesize)} 時間 {dr_date($data.inputtime)} {/loop} </div> <div class="download-item-cell">{dr_date($t._inputtime, 'Y-m-d')}</div> <div class="download-item-cell"> <div class="download-img"> <img src="{HOME_THEME_PATH}images/download.svg" alt="" /> </div> <div class="download-img-act"> <img src="{HOME_THEME_PATH}images/download-active.svg" alt="" /> </div> </div> </a> {/module}
可以的
參考文檔:《附件信息》
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復@迅睿框架技術-實習 這個文檔地址我已經(jīng)貼在問題里了,我是問如何獲取上傳時間,id我拿到了
你把你的調(diào)用代碼發(fā)來,我給你小改小改
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
{module module=download catid=13 order=updatetime } {loop $t.fj $i $c} <a href="{dr_down_file($c.file)}" target="_blank" class="download-item sr_b"> {/loop} <div class="download-item-cell">{$t.title}</div> <div class="download-item-cell"> {loop $t.fj $i $c} {php $data = \Phpcmf\Service::C()->get_attachment($c.file);} {dr_format_file_size($data.filesize)} {/loop} </div> <div class="download-item-cell">{dr_date($t._inputtime, 'Y-m-d')}</div> <div class="download-item-cell"> <div class="download-img"> <img src="{HOME_THEME_PATH}images/download.svg" alt="" /> </div> <div class="download-img-act"> <img src="{HOME_THEME_PATH}images/download-active.svg" alt="" /> </div> </div> </a> {/module}回復@迅睿框架技術-實習
{module module=download catid=13 order=updatetime } {loop $t.fj $i $c} <a target="_blank" href="{dr_down_file($c.file)}" target="_blank" class="download-item sr_b"> {/loop} <div class="download-item-cell">{$t.title}</div> <div class="download-item-cell"> {loop $t.fj $i $c} {php $data = \Phpcmf\Service::C()->get_attachment($c.file);} {dr_format_file_size($data.filesize)} 時間 {dr_date($data.inputtime)} {/loop} </div> <div class="download-item-cell">{dr_date($t._inputtime, 'Y-m-d')}</div> <div class="download-item-cell"> <div class="download-img"> <img src="{HOME_THEME_PATH}images/download.svg" alt="" /> </div> <div class="download-img-act"> <img src="{HOME_THEME_PATH}images/download-active.svg" alt="" /> </div> </div> </a> {/module}開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!