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

聯系官方銷售客服

1835022288

028-61286886

投訴 已解決 在共享欄目與內容中,有兩個規則設置了內容頁使用自定義設置 1 0
迅睿CMS版本:4.6.3 懸賞:2元 #rewrite.php #CodeIgniter

在 URL規則中,設置有 共享欄目與內容 和 產品類型,兩個屬于同一類別,都是 共享欄目與內容

在兩個規則中,內容頁都自定義了規則,分別是 myurl 以及 producturl

在常規欄目中調用的是 myrul規則, 在產品頁中,調用的是producturl,現在發現, 同樣能使用 myurl 的規則打開

在rewrite.php 中是這樣寫的:

 if (CMSURI) {
    $myfile = WRITEPATH . 'myid/' . md5(CMSURI) . '.txt';
    if (is_file($myfile)) {
        $id = file_get_contents($myfile);
        if ($id) {
            return [
                CMSURI => 'index.php?c=show&id=' . $id, // 這里寫內容的地址
            ];
        }
    }
}

解決方案
  •  if (CMSURI) {
        $myfile = WRITEPATH . 'myid/' . md5(CMSURI) . '.txt';
        if (is_file($myfile)) {
            $id = file_get_contents($myfile);
            if ($id) {
                return [
                    CMSURI => 'index.php?c=show&id=' . $id, // 這里寫內容的地址
                ];
            }
        }
        $myfile = WRITEPATH . 'producturl/' . md5(CMSURI) . '.txt';
        if (is_file($myfile)) {
            $id = file_get_contents($myfile);
            if ($id) {
                return [
                    CMSURI => 'index.php?c=show&id=' . $id, // 這里寫內容的地址
                ];
            }
        }
    }
    滿意答案
    開源積分+10
    +2元
  • @外聘專員-明礬軟件:感謝支持,很有用