迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
在前端發布完后,返回到剛發布文章頁面。這樣是如何實現的?
重寫模塊的用戶類控制器
/** * 回調處理結果 * $data * */ protected function _Call_Post($data) { if ($data[1]['status'] == 9) { $list = $html = ''; if ($this->module['category'][$data[1]['catid']]['setting']['html']) { // 生成權限文件 if (!dr_html_auth(1)) { return dr_return_data(0, dr_lang('/cache/html/ 無法寫入文件')); } $html = WEB_DIR.'index.php?s='.$this->module['dirname'].'&c=html&m=showfile&id='.$data[1]['id']; $list = WEB_DIR.'index.php?s='.$this->module['dirname'].'&c=html&m=categoryfile&id='.$data[1]['catid']; } $url = WEB_DIR.'index.php?s='.$this->module['dirname'].'&c=showid='.$data[1]['id']; return dr_return_data(1, dr_lang('操作成功'), ['url' => $url, 'id' => $data[1]['id'], 'catid' => $data[1]['catid'], 'htmlfile' => $html, 'htmllist' => $list]); } else { if (\Phpcmf\Service::L('input')->post('is_draft')) { return dr_return_data(1, dr_lang('操作成功,已存儲到草稿箱')); } else { return dr_return_data(1, dr_lang('操作成功,等待管理員審核'), ['id' => $data[1]['id'], 'catid' => $data[1]['catid']]); } } }
回復@迅睿框架聯合創始人
$url = WEB_DIR.'index.php?s='.$this->module['dirname'].'&c=showid='.$data[1]['id'];
這行代碼寫漏了一個&符號。
應該是:show&id
非常感謝,@迅睿框架聯合創始人 已經解決
重寫模塊的用戶類控制器
回復@迅睿框架聯合創始人
這行代碼寫漏了一個&符號。
非常感謝,@迅睿框架聯合創始人 已經解決