ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 已解決 在前端發布完后,返回到剛發布文章頁面 2 0
321880570(不懂技術) SVIP會員 OEM版權 2022-02-17 17:14:31 私信
迅睿CMS版本:4.5.4

在前端發布完后,返回到剛發布文章頁面。這樣是如何實現的?

解決方案
  • 重寫模塊的用戶類控制器

    /**
     * 回調處理結果
     * $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']]);
            }
        }
    }
    滿意答案
    開源積分+10
  • 2022-02-17 17:27:15
    Chrome 12分鐘44秒 0

    回復@迅睿框架聯合創始人

    $url = WEB_DIR.'index.php?s='.$this->module['dirname'].'&c=showid='.$data[1]['id'];

    這行代碼寫漏了一個&符號。

    應該是:show&id

    非常感謝,@迅睿框架聯合創始人 已經解決