فهرست منبع

Merge branch 'master' of https://git.97admin.com:433/chendeben/taoqu

chendeben 6 سال پیش
والد
کامیت
cbecb1ee54
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      App/Api/Model/Dataoke.php

+ 4 - 3
App/Api/Model/Dataoke.php

@@ -27,9 +27,9 @@ class Dataoke
 //            if (strstr($url, "tao.php") === false) {
 //                continue;
 //            }
-            $_url=str_replace("/tao.php", "", $url);
-            $_url=str_replace("/index.php", "", $_url);
-            $t = parse_query($_url);
+            $query=parse_url($url);
+
+            $t = parse_query($query['query']);
             if ($t['kw']) {
 //                if ($t['bids']){
 //                    $new_url="/kw/" . $t['kw'] . ".html?bids=".$t['bids'];
@@ -64,6 +64,7 @@ class Dataoke
         $content=str_replace('"/tao.php?r=ddq"', '"/pages/dongdong.html"', $content);
         $content=str_replace('"/tao.php?r=l"', '"/pages/haohuo.html"', $content);
         $content=str_replace('"/tao.php?r=index/index&u=1350274"', '"/"', $content);
+        $content=str_replace('"/tao.php?r=index"', '"/"', $content);
         $content=str_replace('https://cmsstatic.ffquan.cn//js/new_home.js', "/static/new_home.js", $content);
 //        $content=str_replace('index.php', "tao.php", $content);
         return $content;